Hmm, yes, did so, even as the user that the webserver is running as. Switched to
another webserver software (caudium) on the same machine and had the script running
there, works fine, takes the 2-3 seconds and the output is included as intended. Huh?
On Thu, 28 Feb 2002 20:13:24 +0800, Jason Wong wrote:
>On Thursday 28 February 2002 19:09, Gunther E. Biernat wrote:
>> I'm trying to output the result of a shell command within a page. Problem
>> is, when it's a command with short execution time like echo shell_exec("ls
>> it works fine, but the command I'm really trying to execute takes 2-3
>> seconds before having calculated the response and by then, the page is
>> already done and the output of the command isn't included.
>> I played around with the settings in php.ini, but none of them changed the
>> problem. Maybe an Apache problem?
>> What am I missing?
>The shell_exec() function *waits* for the output from the command. I tried:
> echo shell_exec("find / -name *.doc");
>which takes nearly 2 minutes to complete and I still got the complete output.
>Are you sure your command returns some output? Have you tried it within a
>Jason Wong -> Gremlins Associates -> www.gremlins.com.hk
>Desist from enumerating your fowl prior to their emergence from the shell.
>PHP General Mailing List (http://www.php.net/)
>To unsubscribe, visit: http://www.php.net/unsub.php
Gunther E. Biernat
Lead Program Manager
Consumer Systems, Europe
RealNetworks GmbH Tel.: +49-40-415204-24
Weidestraße 128 Fax.: +49-40-415204-11
22083 Hamburg Mail: [EMAIL PROTECTED]
Germany URL : http://de.real.com
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php