PHP - Windows
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
Go Back   Web Development Archives Mailing Lists PHP - Windows

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Web Development Archives Sponsor:
  #1  
Old January 23rd, 2006, 07:05 AM
Dave Kennedy
Guest
Dev Archives Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
FW: exec php.exe in windows

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 <monthand <branchto build up a report in
export/Balance.html

exec('c:\php\php -q Balance.php export=all branch=<branchmonth=<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

Reply With Quote
  #2  
Old January 24th, 2006, 01:18 PM
El Bekko
Guest
Dev Archives Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
FW: exec php.exe in windows

Dave Kennedy wrote:
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 <monthand <branchto build up a report in
export/Balance.html

exec('c:\php\php -q Balance.php export=all branch=<branchmonth=<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() ;)

--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply With Quote
Reply

Viewing: Web Development Archives Mailing Lists PHP - Windows > FW: exec php.exe in windows


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2009 by Developer Shed. All rights reserved. DS Cluster 5 Hosted by Hostway
Stay green...Green IT