473,769 Members | 4,089 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Bad connection / maximum execution time exceeded PHP?

Hello all,
I am looking into issues with time-outs on a website.
These appear to happen in a random way for some users.

This is one example:

Fatal error: Maximum execution time of 60 seconds exceeded in
[snipped_path] auth.php on line 5

auth.php contains:

1 <?php
2 // Login & Session
3 // auth.php
4
5 // start session
6 session_start() ;

auth.php gets included like this:
1 <?php include("Includ e/auth.php"); ?>

These timeouts occur sometimes when users from far away (China) use
the website.
The users are known for having an unreliable internet connection at
times.
I have never had these timeouts myself, and can not reproduce any of
them.
The timeouts seem to appear in random places spread across the site,
there does not seem to be a pattern here.

All docs I have here on PHP say that the max execution time is only
the time spent by the PHP interpreter, and does not include the time
sending the data back to the user. So that would suggest there is
something going wrong in the PHP, but I can never find anything
related to that. In this case the error is on or close to lines that
are comments...

My question now is:
Is there any way that a bad internet connection can cause these
time-outs?
Is there something I can do to solve it, or improve it?
I do not use any output buffering in PHP now, would it make a
difference in these cases?

Thanks already,

Richard.

Dec 19 '07 #1
2 3044
I guess that you're including a file that takes longer to execute,
you should check all your includes looking for a while o a connection
that takes too long, never ends or keeps idling until the script hits
the max exec time.

By the way, if you find a way to catch that kind of errors, max exec
time,
post it, since I need a way to die elegant on that.

On Dec 19, 9:19 am, "Richard" <root@localhost wrote:
Hello all,
I am looking into issues with time-outs on a website.
These appear to happen in a random way for some users.

This is one example:

Fatal error: Maximum execution time of 60 seconds exceeded in
[snipped_path] auth.php on line 5

auth.php contains:

1 <?php
2 // Login & Session
3 // auth.php
4
5 // start session
6 session_start() ;

auth.php gets included like this:
1 <?php include("Includ e/auth.php"); ?>

These timeouts occur sometimes when users from far away (China) use
the website.
The users are known for having an unreliable internet connection at
times.
I have never had these timeouts myself, and can not reproduce any of
them.
The timeouts seem to appear in random places spread across the site,
there does not seem to be a pattern here.

All docs I have here on PHP say that the max execution time is only
the time spent by the PHP interpreter, and does not include the time
sending the data back to the user. So that would suggest there is
something going wrong in the PHP, but I can never find anything
related to that. In this case the error is on or close to lines that
are comments...

My question now is:
Is there any way that a bad internet connection can cause these
time-outs?
Is there something I can do to solve it, or improve it?
I do not use any output buffering in PHP now, would it make a
difference in these cases?

Thanks already,

Richard.
Dec 19 '07 #2

"Vanscot" <va*****@gmail. comwrote in message
news:5d******** *************** ***********@s19 g2000prg.google groups.com...
On Dec 19, 9:19 am, "Richard" <root@localhost wrote:
>Hello all,
I am looking into issues with time-outs on a website.
These appear to happen in a random way for some users.

This is one example:

Fatal error: Maximum execution time of 60 seconds exceeded in
[snipped_path] auth.php on line 5

auth.php contains:

1 <?php
2 // Login & Session
3 // auth.php
4
5 // start session
6 session_start() ;

auth.php gets included like this:
1 <?php include("Includ e/auth.php"); ?>

These timeouts occur sometimes when users from far away (China)
use
the website.
The users are known for having an unreliable internet connection at
times.
I have never had these timeouts myself, and can not reproduce any
of
them.
The timeouts seem to appear in random places spread across the
site,
there does not seem to be a pattern here.

All docs I have here on PHP say that the max execution time is only
the time spent by the PHP interpreter, and does not include the
time
sending the data back to the user. So that would suggest there is
something going wrong in the PHP, but I can never find anything
related to that. In this case the error is on or close to lines
that
are comments...

My question now is:
Is there any way that a bad internet connection can cause these
time-outs?
Is there something I can do to solve it, or improve it?
I do not use any output buffering in PHP now, would it make a
difference in these cases?

Thanks already,

Richard.
>I guess that you're including a file that takes longer to execute,
you should check all your includes looking for a while o a
connection
that takes too long, never ends or keeps idling until the script
hits
the max exec time.

By the way, if you find a way to catch that kind of errors, max exec
time,
post it, since I need a way to die elegant on that.
Hi,
thanks for the reply, but there is nothing more to this particular
timeout than I mentioned.
This is the only include, it gets included on the first line of the
first php page....

Richard.
Dec 19 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
1608
by: Kees S. | last post by:
With a script i get information from some websites, but sometimes it happens that one of these websites is offline or is not responding. In that case i get the error-message: Maximum execution time of 30 seconds exceeded Is there a way that i can create an error message myself saying some thing like 'website is currently not available'. And that the script goes on for the other sites and displays the at least the information from...
2
2922
by: John | last post by:
I am trying to create thumbnails from 2500 pictures. But I always get a Maximum execution time of 30 seconds exceeded" at the statement with the method with imagejpeg or imagedestroy after processing and creating 500 thumbnails. Is there anything I can do to avoid this error? Thank you John
3
55684
by: kant | last post by:
stringA= "Provider=SQLOLEDB.1;Persist Security Info=False;User ID=sa;PWD=password;Initial Catalog=DB;Data Source=127.0.0.1;Connect Timeout=30" stringB = "Provider=Microsoft.Jet.OLEDB.4.0; Data Source=" & Server.MapPath("DB.MDB") & ";Connect Timeout=30" Hi All,
1
4004
by: Dave Smithz | last post by:
Hi, My PHP application for a client uses the publicly available "PHPMailer - PHP email class" which is very good. However, my client recently complained about the following error when sending out over 4000 emails. (Note that each email is customised so needs to be sent individually - not using Bcc). The application reported to have sent the 4000 emails successfully (it sends each one as part of a loop and then when completed gives a...
2
1652
by: ivancasher | last post by:
I´ve this warning in a php page "Maximum execution time of 30 seconds exceeded ", I´ve configurated the php.in, setting the value of max_execution_time = 1200, and then i restart the apache service. The apache server is in a Win2000 server machine. Thank´s
9
5022
by: Shuan | last post by:
I am getting this error. Can it be fixed by setting more than 60 for the max_execution_time in php.in file? Fatal error: Maximum execution time of 60 seconds exceeded in categorycrawler.php on line 19 on this line i have regular expression preg_match_all(,,)
10
1731
by: rich | last post by:
I have a PHP5 application that accepts external messages, and inserts them into a database. It's rather high traffic.. the server could be receiving thousands at a time, and recently mysql has been locking up because it's exceeding the max_connections limit. I raised it for now, but that's only a temporary fix. My question is is there a way to make a connection to mysql that multiple instances of an object will use together? I'm under...
16
2872
by: crbd98 | last post by:
Hello All, Some time ago, I implemented a data access layer that included a simple connectin pool. At the time, I did it all by myself: I created N connections, each connection associated with a worker thread that would execute the db commands. The pool was fixed and all the connections were created when the db access class was instantiated. The connections remained opened during the whole execution. If a connection was not available...
1
7182
by: David Greenberg | last post by:
Hello I am running a DTS (Sql 2000) and transfering data from an SqlServer database to an Ingres database. I am transfering 153k rows. Execution fails with the error message: "The number of failing rows exceeded the maximum specified" The number of rows shouldn't be a problem because in another DTS I copy a lot more rows. Also the width of the row shouldn't be a problem, I'm transfering only 3
0
9422
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10208
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10038
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9987
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
7404
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5294
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5444
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3558
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2812
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.