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:
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(),
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_
3 matches
Mail list logo