Go Back   CodingForums.com > :: Server side development > PHP

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 11-03-2006, 11:56 AM   PM User | #1
NancyJ
Senior Coder

 
NancyJ's Avatar
 
Join Date: Feb 2005
Location: Bradford, UK
Posts: 3,162
Thanks: 19
Thanked 65 Times in 64 Posts
NancyJ will become famous soon enough
Timing out if no output to screen

How can I stop scripts timing out if theres no output to screen for a while? Its not a script error timeout - it just stops loading in the browser.
I've got some scripts though that do some very long queries and if nothing gets output to the browser it stops - and doesnt finish executing the script sometimes.
I really need to fix this issue as it is causing major problems in my application.
__________________
http://www.hazelryan.co.uk
NancyJ is offline   Reply With Quote
Old 11-03-2006, 12:16 PM   PM User | #2
NancyJ
Senior Coder

 
NancyJ's Avatar
 
Join Date: Feb 2005
Location: Bradford, UK
Posts: 3,162
Thanks: 19
Thanked 65 Times in 64 Posts
NancyJ will become famous soon enough
I've just created a script with the instruction
PHP Code:
sleep(900); 
After 205s it said "You have chosen to open 'script.php'" with the standard download box.

my apache timeout is set to 600 as is the KeepAliveTimeout
__________________
http://www.hazelryan.co.uk
NancyJ is offline   Reply With Quote
Old 11-03-2006, 12:24 PM   PM User | #3
maro25
New to the CF scene

 
Join Date: Nov 2006
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
maro25 is an unknown quantity at this point
I don't believe there is a why to do this. Maybe there is a way to replace the standard php message to something more appropriate for you.
__________________
WatermarkIt add watermarks to photos and images
Salo Storm Software
maro25 is offline   Reply With Quote
Old 11-03-2006, 12:28 PM   PM User | #4
NancyJ
Senior Coder

 
NancyJ's Avatar
 
Join Date: Feb 2005
Location: Bradford, UK
Posts: 3,162
Thanks: 19
Thanked 65 Times in 64 Posts
NancyJ will become famous soon enough
There is no message - as I said - its not a standard php script timeout - it just stops executing.
__________________
http://www.hazelryan.co.uk
NancyJ is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

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

Forum Jump


All times are GMT +1. The time now is 12:05 AM.


Advertisement
Log in to turn off these ads.