[PHP] run du command uder php

2001-04-28 Thread Mark Lo \(3\)
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:

Re: [PHP] run du command uder php

2001-04-28 Thread idban secandri
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(),

Re: [PHP] run du command uder php

2001-04-28 Thread John Monfort
you might want to consider add the html PRE tag, to preserve the output format. Something like, exec (du -ks /home/apache,$test[]); echo pre$test[0] /pre; This will display the result in the browser, just as it does in the Unix shell. __John Monfort_