FRIHOSTFORUMSFAQTOSBLOGSDIRECTORY
You are invited to Log in or Register a 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');
?>
Reply to topic    Frihost Forum Index -> Scripting -> Php and MySQL

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