Forum     

Go Back   Digit Technology Discussion Forum > Portables, Peripherals and Electronics > QnA (read only)
Register FAQ Calendar Mark Forums Read

QnA (read only) Mods please help transfer the contents of this forum to proper sections. :)


 
 
LinkBack Thread Tools Search this Thread Display Modes
Old 30-12-2005, 08:26 PM   #1 (permalink)
Right Off the Assembly Line
 
Join Date: Dec 2005
Posts: 1
Default php issues : script timeout


Hi there,
We are creating a solution in php / mysql where we are displaying about 1000 rows of information.

With the default php coding, the system tries to get all the information from the mysql database and then display it in one go, this causes it to timeout.

We are looking forward to know, how we can get it display one row at a time and then fetch information on the next row. Something that we see working on www.mail2web.com (though its in ASP)

Can someone help?

Manoj Oswal
manojoswal is offline  
Advertisements. Register and be a member of the community to get rid of them.
Advertisement

Old 31-12-2005, 02:11 PM   #2 (permalink)
left this forum longback
 
praka123's Avatar
 
Join Date: Sep 2005
Location: -
Posts: 7,536
Default

i think you will get better answers in some Prof. php forums....like
http://www.php.net/mailing-lists.php
Best of LUX
praka123 is offline  
Old 31-12-2005, 02:23 PM   #3 (permalink)
Wise Old Owl
 
alib_i's Avatar
 
Join Date: Jun 2004
Location: omnipresent
Posts: 1,191
Default

A layman's solution would be .. to increase the max. script execution time
To do this .. open "php.ini" located in "C:\Windows" folder in notepad.
Scroll down where you find the following text.

Code:
;;;;;;;;;;;;;;;;;;;
; Resource Limits ;
;;;;;;;;;;;;;;;;;;;

max_execution_time = 30     ; Maximum execution time of each script, in seconds
max_input_time = 60	; Maximum amount of time each script may spend parsing request data
memory_limit = 8M      ; Maximum amount of memory a script may consume (8MB)
Change max_execution_time to 60 or 90 ..as you wish

-----
alibi
__________________
What I've felt, What I've known; Never shined through in what I've shown
Never free, Never me; So I dub thee unforgiven
-Metallica
alib_i is offline  
Old 03-01-2006, 06:24 PM   #4 (permalink)
Version 2.0
 
Deep's Avatar
 
Join Date: Jan 2004
Location: Mumbai
Posts: 977
Default

why don't you use paging and limit the query with option "LIMIT"?

That will be the best solution for this....

btw moving this to Q&A...

Deep
__________________
- Deep Ganatra -
www.whoisdeep.com
www.twitter.com/DeepXP/
Deep is offline  
 

Bookmarks

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


 
Latest Threads
- by Charan
- by abhidev
- by Sujeet
- by Sarath
- by Krow

Advertisement




All times are GMT +5.5. The time now is 09:02 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.

Search Engine Optimization by vBSEO 3.3.2