FRIHOST FORUMS SEARCH FAQ TOS BLOGS COMPETITIONS
You are invited to Log in or Register a free Frihost Account!


Not Display Results?





cr3ativ3
I was just wondering if there is any way's to accomplish the same as the script below would without displaying the processes to the browser like without outputting to the browser. Test the script and you will see what I meen.

Code:

<?php
system('find . -type d -exec chmod 777 {} \; 2>&1');
system('find . -type f -exec chmod 777 {} \; 2>&1');
?>
kv
use shell_exec instead

http://fr.php.net/manual/en/function.shell-exec.php

Code:

<?php
shell_exec('find . -type d -exec chmod 777 {} \; 2>&1');
shell_exec('find . -type f -exec chmod 777 {} \; 2>&1');
?>
Related topics
Help with PhpBB
Allow IPB or Vbulletin
Making a homepage?!
i use frontpage
Oczekiwanie na konto, punkty i inne
Add a new useful function
Search function server load relief.
A modification in "egosearch" ?
Ajax or JS - need help ASAP
advanced search engine
how to put what you have query in a drop down list?
simple poll for users
How About "Regional" Category
search, a bit contextual in php
Reply to topic    Frihost Forum Index -> Scripting -> Php and MySQL

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2011 Frihost, forums powered by phpBB.