473,386 Members | 1,841 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

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("Include/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 3025
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@localhostwrote:
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("Include/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**********************************@s19g2000 prg.googlegroups.com...
On Dec 19, 9:19 am, "Richard" <root@localhostwrote:
>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("Include/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
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...
2
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...
3
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...
1
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...
2
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...
9
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...
10
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...
16
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...
1
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...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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...
0
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,...

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.