Timeout in webpages

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
fernando2005
Forum Newbie
Posts: 8
Joined: Tue May 31, 2005 3:04 pm
Location: Honduras

Timeout in webpages

Post by fernando2005 »

Hi everyone I wanted to know what can I do with this issue.

I made a webpage that makes a query from SQL Server, I have PHP installed in IIS 5.0. The webpage is is supposed to be used in my offices LAN. Our offices have 2 buildings. The thing is everytime I access my webpage from the computers in building 1 (office where the server resides) the webpage works fine but whenever I access it from building 2 the webpage (when makink the query) just does it for 30 seconds. (It's a really big query in a huge database, so it's expected that the query may take that long). After that it stops displaying info, which means that not all the info is displyaed.

What should I do? Should I check any parameters in php.ini? Hope you can help cause I'm lost.
fernando2005
Forum Newbie
Posts: 8
Joined: Tue May 31, 2005 3:04 pm
Location: Honduras

Program Detail

Post by fernando2005 »

I get

Fatal error: Maximum execution time of 30 seconds exceeded in
User avatar
Ambush Commander
DevNet Master
Posts: 3698
Joined: Mon Oct 25, 2004 9:29 pm
Location: New Jersey, US

Post by Ambush Commander »

I think what's happening is the script is outputting the data when the timelimit is exceeded. Increase the max time limit or optimize your query.
fernando2005
Forum Newbie
Posts: 8
Joined: Tue May 31, 2005 3:04 pm
Location: Honduras

Solved.....

Post by fernando2005 »

I changed max_execution_time from 30 to 330 and now it works fine.
Post Reply