PHP

Moderators: None (Apply to moderate this forum)
Number of threads: 1845
Number of posts: 5013

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
extending server-timeout? Posted by RuntimeTerror on 26 Jul 2002 at 12:43 AM
Hey folks,
does anyone know if it's possible to extend the server-timeout through php(4)? We have a code, that has to resolve a couple of DB-Queries and exceeds the given time.
Haven't found a way yet - doesn't even know, if it's possible at all.

thx in advance for quick help


RuntimeTerror
Errors show that you've tried it!

Report
Re: extending server-timeout? Posted by Mark Strijbos on 15 Aug 2002 at 3:55 AM
: Hey folks,
: does anyone know if it's possible to extend the server-timeout through php(4)? We have a code, that has to resolve a couple of DB-Queries and exceeds the given time.
: Haven't found a way yet - doesn't even know, if it's possible at all.
yes it is, but not in the script(s) - you have to edit the configuration file ( usually called php.ini ). look for the
"max_execution_time" option; this sets the maximum time in seconds a script is allowed to take before it is terminated by the parser. This helps prevent poorly written scripts from tieing up the server.

if you also do some db access in our script your problem could lie with the MySQL configuration - it is also possible to set the max. exec time for MySQL queries so perhaps you will also have to change these settings






 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.