Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Never ending script 1

Status
Not open for further replies.

asmforever

Programmer
May 26, 2003
12
0
0
US
I am hosting a PHP web page on our Win 2000 Server IIS 5 and have installed php for Win 32. When the php scripts run the web page is produced but after the page loads the progress bar on the browser just stops. You can press the stop button and the bar clears. The page is complete with no errors on the browser. If I look at the server logs there is an error 16 saying that the scrip (script name) failed to respond within the timeout period. It seems that the php script engine thinks that it hasn't reached the end of the script. Only have 1 hair left, please help!
 
One of the ways to figure out where the bug is is to start sticking this in your page, going from the top down, and finding out how low you can actually put it and have it work and where the loop has already started and adding this won't help. Stick this:

print(&quot;<br>ok...<br>&quot;);
exit();

in your PHP code and just keep moving it around until you find out which line that infinite loops starts on...

Rick

-----------------------------------------------------------
RISTMO Designs
Arab Church
Reference Guides
 
I may have described the problem incorrectly. The script runs and does everything it was designed to do. The problem seems to be that Windows or the PHP Interpreter thinks that it has not reached the end of the script and just waits until you get the following error in the Windows event log:

Event ID:16
The script started from the URL &quot;scriptname.pphp&quot; with parameters &quot; &quot; has not responded within the configured timeout period. The HTTP Server is terminating the script.



 
I think RISTMO's advice is still applicable. It may be that there is some non-critical code section at the end of your script that is causing the script to loop or pause too long.

At the very least, by checking you'll be able to verify that this is not the problem.

Or does every script on your machine demonstrate this same behavior?

Want the best answers? Ask the best questions: TANSTAAFL!!
 
I have verified that the script runs all the way through, it does happen to every script (which is about 25 scripts) the entire web site is written in php. I am not familar with php and the author of the web site has always used linux os, trying to run on windows server is new to him also. I will post one of the simple scrips for you but I need to get permission from the web site owner. Thanks.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top