RE: [PHP-WIN] Re: exec() without waiting for completion in Win2k
| From: | Rich Gray | Date: | Mon, 09 Sep 2002 03:56:28 +0000 |
| Subject: | RE: [PHP-WIN] Re: exec() without waiting for completion in Win2k | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-15712@lists.php.net to get a copy of this message | ||
What does this do....?
exec(getenv('COMSPEC').' /c c:\path\to\your\bat\file\build.bat >NUL');
Do you see any errors in the log file?
Rich
-----Original Message-----
From: Kurtis Harper [mailto:napalm@pei.eastlink.ca]
Sent: 08 September 2002 15:33
To: php-windows@lists.php.net
Subject: [PHP-WIN] Re: exec() without waiting for completion in Win2k
I am having problems as well with exec() but this may help in your case, try
single quotes, eg add this to your php script:
exec ('start C:\path\to\your\bat\file\build.bat');
Hope this helps.
"Noel Llopis" <llopis@comcast.net> wrote in message
news:20020908072821.CADD.LLOPIS@comcast.net...
> Hello,
>
> I'm working on a web front-end for our build system. One of the
> things I need to do is allow the user to start a lengthy build in the
> back and continue using the web page.
>
> Unfortunately, I can't find out how to do it. I can start the
> build, but the web page won't complete loadinguntil the build
> finishes (which considering it can take up to 5 hours, it's
> not a good thing ;-)
>
> I'm using Apache 1.3 under Win2k and PHP 4.2.3. I tried all
> combinations of exec ("cmd /c start build"), even doing
> exec ("cmd /c start build.bat"), where build.bat contains
> start build. Nothing. The web page always waits for the command
> to finish.
>
> I'm running PHP as an Apache module. I tried running it as
> CGI but had no luck getting PHP to work at all.
>
> Any suggestions? It's the most important thing this front
> end has to do. Without it, there would be no point to the program
> in the first place.
>
> Switching to Linux, unfortunately, is not an alternative I can
> consider right now since the build itself needs to happen
> in Win2k.
>
> Thanks.
>
>
> --Noel
> llopis@comcast.net
>
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.385 / Virus Database: 217 - Release Date: 9/4/2002
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php