Click to See Complete Forum and Search --> : No exec


bizshop
01-03-2001, 03:22 PM
I have both CGI and module versions installed on Apache/FreeBSD virtual server from Iservers.com

If I'm at a command prompt and type du, I can see disk usage

I've a php script called du.php, that simply says
<?
exec(du);
?>
I just get a blank screen. Same thing if I use passthru(du); instead.

If I try
#! /usr/local/bin/php -q
<?
passthru(du);
?>

I see the shebang line (it didn't quiet) and a blank screen. I've confirmed my PHP CGI is at /usr/local/bin/php

Anon
01-03-2001, 03:48 PM
Try quotes around the argument:
system("du");

bizshop
01-03-2001, 04:19 PM
No change with quotes. No error messages, just blank screen or blank with shebang(CGI version)

Anon
03-14-2002, 12:54 PM
Hi,

I've the same problem. How did you solve?