If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > MySQL > PHP/MySQL pages not loading fully

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-15-04, 09:42
tryant4d tryant4d is offline
Registered User
 
Join Date: Nov 2004
Location: Canada
Posts: 3
PHP/MySQL pages not loading fully

Hi folks

I'm assuming/hoping that this is a known issue with a logical resolution (aren't we all?).

I have a web app that loads large forms or dynamic php pages based on queries to MySQL. The amount of data that is loaded can be quite large and can involve numerous queries and sometimes loops of two to five iterations. Sometimes the form (and therefore the page in the browser) loads with incomplete data - the page might end prematurely - it might be truncated before the end.

It would appear that the connection was slow and the query wasn't finished or that the page was loaded before all of the data was processed and loaded. And it doesn't happen consistently.

Is this common? Is it a server issue? Can I code around it? Does my host need to tweak something in MySQL or PHP or Apache? Or do I just need to chop the page into separate sections on separate pages (a less that ideal solution).

Let me know if you need more info.

Thanks in advance

Tom
Reply With Quote
  #2 (permalink)  
Old 11-16-04, 01:43
Sudar Sudar is offline
Registered User
 
Join Date: Jul 2004
Location: Mars
Posts: 137
Thumbs up PHP would have timedout

Hai..

I think your PHP script has got timed out, due to complex queries. The default timeout time is 30 sec (Unless u change it). So to solve this issue, you can either increase the timeout time (in the PHP.INI file) or split the queries to be run on two different pages.

Hope this helps. Do let me know whether this solved your problem
__________________
Sudar

--
My Blog
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 On
Pingbacks are On
Refbacks are On