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" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> 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
> [EMAIL PROTECTED]
>


---
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

Reply via email to