SRV Local Web Server stops running PHP script after 3 minute |
Guru master
|
Just to get the obvious out of the way first: I presume that the PHP time limit has been correctly modified, either with set_time_limit() or directly using max_execution_time in the .ini?
Given the fact that the default is 30 seconds and your script already runs 3 minutes I assume it is but this will probably be the first question anyone else will ask. |
||||||||||||
|
|
First of all, THANK YOU, for reading my post, considering my problem, and for taking the time to respond.
You pose a good question. I can confirm your assumption. Yes, we use the PHP function to set the maximum execution time to unlimited (0) and we use the PHP function to prevent a client disconnect from causing the script to abort. set_time_limit(0); ignore_user_abort(TRUE); These are among the first statements executed in our scripts. Also note, that when the Apache server runs our scripts on the remote application server (a FreeBSD box) our scripts run well beyond the 3 minute mark, and run to completion - even if we're debugging using the PhpEd remote debugger! It's only when we run the scripts locally using the SRV Local Web Server provided with PhpEd that we find our scripts stop running at exactly the 180 second mark. Now, that's not to say that our php.ini file could be different between the FreeBSD machine and our local windows PC. But, we've looked high and low for a setting to extend this 3 minutes. ...to no avail. |
||||||||||||
|
|
I wonder if I should also provide some information pertaining to the version of Phped we're using.
NuSphere PhpEd 4.6.3. (Build 4633) PHP Debug Listener, version 3.1.7. Srv Local WEB server File Version 4.6.3.4633 ...and, our scripts are running under PHP5, supplied with PhpEd: php-cgi.exe File Version 5.1.6.6. |
||||||||||||
|
Guru master
|
The only thing I can think of besides the php timeout is that its a built in limit of the SRV itself.
Perhaps you should try to contact support and query them about that? Anyway if this were the case it would make the SRV rather pointless as you'd need to finish your debugging session in 3 minutes. On the other hand, it was never really developed as a full blown webserver. If you find no solution you could just download a wamp server and use that. Most of them require little to no setup. I like Z:WAMP for example for my laptop, as I can't use my CentOS servers when I'm not connected to my home network. |
||||||||||||
|
|
Yeah. We basically accepted the fact that it was probably a built in limitation. We left it at that exactly with the understanding that the SRV was not supposed to be a full blown web server, just like you said. But, I'll check with support and see if they have any magic. And, I'll look into WAMP as well. That's a great tip. Thanx!
|
||||||||||||
|
SRV Local Web Server stops running PHP script after 3 minute |
|
||
Content © NuSphere Corp., PHP IDE team
Powered by phpBB © phpBB Group, Design by phpBBStyles.com | Styles Database.
Powered by
Powered by phpBB © phpBB Group, Design by phpBBStyles.com | Styles Database.
Powered by