Re: FW: exec php.exe in windows
| From: | Dave Kennedy | Date: | Mon, 23 Jan 2006 19:20:44 +0000 |
| Subject: | Re: FW: exec php.exe in windows | ||
| Groups: | php.windows | ||
| Request: | Send a blank email to php-windows+get-26644@lists.php.net to get a copy of this message | ||
>> Env:
>> Windows XP
>> PHP 4.3.10 (cgi-fcgi)
>>
>> I am trying to capture the html output of Balance.php to a file:
>> The code loops over <month>> and <branch>> to build up a report in
>> export/Balance.html
>>
>> exec('c:\php\php -q Balance.php export=all branch=<branch>>
month=<month>>
>> login=admin password=admin >>>> export/Balance.html');
>>
>> This command works in Linux when called from a web page.
>> In Windows it works from the command line
>> but from a web page it hangs - a cmd and php process are left running
in
>> the Windows Task Manager
>>
>> Any help would be greatly appreciated
>>
>Try using fwrite() ;)
Thanks for your response
Could you be more specific.
Do you have a solution to starting exec('c:\php\php.exe .') from an IIS
HTTP server on Windows XP