Re: Suggestion on executing external programs from within php
| From: | John Clegg | Date: | Fri, 23 Jan 2004 12:18:40 +0000 |
| Subject: | Re: Suggestion on executing external programs from within php | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-175505@lists.php.net to get a copy of this message | ||
Hi Stuart,
I have finally had a chance to test your suggestion and I am still getting a browser timeout ?
The 1st program runs to completion even though the broswer times out. So it doesn't execute the second program :-(
I have also tried....
/usr/local/bin/process_file file1 &
exec('/usr/local/bin/process_file file1 &')
Any ideas??
John
Stuart wrote:
John Clegg wrote:I would like to be able to execute 2 system calls simultaneously. I am not interested in the output and I would like to do the equivalent of a fork as these programs take a long time. system('/usr/local/bin/process_file file1'); system('/usr/local/bin/process_file file2');system('/usr/local/bin/process_file file1 &'); system('/usr/local/bin/process_file file2 &'); Should work in theory. Haven't test it though.