Re: [PHP] run du command uder php
you might want to consider add the html PRE tag, to preserve the output format. Something like, > exec ("du -ks /home/apache",$test[]); echo " $test[0] "; This will display the result in the browser, just as it does in the Unix shell. __John Monfort_ _+---+_ P E P I E D E S I G N S www.pepiedesigns.com "The world is waiting, are you ready?" -+___+- On Sat, 28 Apr 2001, Mark Lo (3) wrote: > Hi, > > I would like to know how to run du command under PHP. > > is this correct ?? > > exec ("du -ks /home/apache",$test[]); > echo $test[0]; --> I would like to print out the result in web browser > > Thank you > > Mark > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] run du command uder php
On Saturday 28 April 2001 04:56, you wrote: > Hi, > > I would like to know how to run du command under PHP. > > is this correct ?? > > exec ("du -ks /home/apache",$test[]); > echo $test[0]; --> I would like to print out the result in web browser > > Thank you > > Mark u can use backtick, exec(), system(), passthru() make sure you read manual first before choosing the right one ie; result:\n"; $result = system($ps); ?> -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] run du command uder php
Hi, I would like to know how to run du command under PHP. is this correct ?? exec ("du -ks /home/apache",$test[]); echo $test[0]; --> I would like to print out the result in web browser Thank you Mark -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]