Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > PHP/MySQL > Pro PHP
Password Reminder
Register
| FAQ | Members List | Search | Today's Posts | Mark Forums Read
Pro PHP Advanced PHP coding discussions. Beginning-level questions will be redirected to the Beginning PHP forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Pro PHP section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old October 14th, 2004, 12:43 PM
Registered User
 
Join Date: Aug 2004
Location: , , Canada.
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default exec() hangs IIS and Apache

Hello:

I am trying to use exec() to perform a 'big' compilation via ANT but this seems to hang my IIS and also Apache Server.

Any help appreciated...

Reply With Quote
  #2 (permalink)  
Old October 18th, 2004, 10:21 PM
Registered User
 
Join Date: Jun 2004
Location: , , .
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Just a guess: have you tried shell_exec() ?

http://www.php.net/shell_exec

Reply With Quote
  #3 (permalink)  
Old October 20th, 2004, 11:11 AM
Friend of Wrox
Points: 2,570, Level: 21
Points: 2,570, Level: 21 Points: 2,570, Level: 21 Points: 2,570, Level: 21
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: San Diego, CA, USA
Posts: 836
Thanks: 0
Thanked 0 Times in 0 Posts
Default

You might need to actually exec a program that launches your compilation in the background.

Shell_exec is actually no help to you because shell_exec waits for the ENTIRE program output, so you're still blocked until compilation finishes.


Take care,

Nik
http://www.bigaction.org/
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
IIS 6.0 proxy to Apache Tomcat yongf6 BOOK: Professional Apache Tomcat 0 June 5th, 2006 01:05 PM
Ch. 17 & 19 Apache instead of IIS Kevin Tough VB.NET 2002/2003 Basics 0 October 3rd, 2005 01:29 AM
Can I run Apache and IIS on the same PC? thegooner BOOK: Beginning PHP, Apache, MySQL Web Development ISBN: 978-0-7645-5744-6 9 June 15th, 2005 05:45 AM
Switch from IIS/Windows to Apache/Redhat anshul Linux 1 April 26th, 2005 05:56 AM
Access Denied to: from apache to iis san2k .NET Web Services 0 June 11th, 2004 07:17 AM



All times are GMT -4. The time now is 03:36 PM.


Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.