Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 467887
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T23:37:37+00:00 2026-05-12T23:37:37+00:00

I make 7 get requests at the same time to one PHP script –

  • 0

I make 7 get requests at the same time to one PHP script – two of the requests are successful and the other requests I get an output of Max Execution of 60 seconds exceeded!

The thing is I have put this at the top of my script:

set_time_limit(300000); 

I have also set this in my PHP.ini file and have restarted apache several times.

max_execution_time = 300000

Why does it keep giving me this error?!?

Thanks all

Update

I have just looked at firebug and it looks as if all requests are not fully fired i.e. it shows the request is still trying to be made. In this case, is it possible for PHP to throw that error if a request has been made to it but it has not started execution!?

It gives me that error on line 1 – so it didn’t even run any part of this script – is this what it means?

Update 2

Just showing the full error:

[Mon Nov 23 13:05:37 2009] [error] [client 127.0.0.1] PHP Fatal error:
Maximum execution time of 60 seconds
exceeded in
C:\wamp\www\webs\process_txt.php
on line 1, referer:
http://localhost/webs/front-end/path.php

Why does it say line 1?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T23:37:37+00:00Added an answer on May 12, 2026 at 11:37 pm

    Check that ini_get reports the correct “max_execution_time”. Also make sure that it reports for “safe_mode” 0 (though this is deprecated and set for removal in PHP 6) as the PHP docs state:

    This function has no effect when PHP is running in safe mode. There is no workaround other than turning off safe mode or changing the time limit in the php.ini.

    Also note in the documentation:

    Your web server can have other timeout configurations that may also interrupt PHP execution. Apache has a Timeout directive and IIS has a CGI timeout function. Both default to 300 seconds. See your web server documentation for specific details.

    Narrow down your problem. Ignore Ajax for the time being and perform a normal HTTP request on the page in question. Test the timeout to make sure the execution time is actually reached:

    for ($i=1; $i<=300; $i++) {
        echo "<p>$i seconds</p>";
        flush();
        ob_flush();
        sleep(1);
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 227k
  • Answers 227k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer bcdedit I believe. Scott Hanselman has a nice walkthrough in… May 13, 2026 at 1:23 am
  • Editorial Team
    Editorial Team added an answer In general, script tags aren't executed when using innerHTML. In… May 13, 2026 at 1:23 am
  • Editorial Team
    Editorial Team added an answer As you've found, you can't do this. As a workaround… May 13, 2026 at 1:23 am

Related Questions

I've made two versions of a script that submits a (https) web page form
I'm trying to get an ASP.NET MVC app working... I should have known it
I created an ASP.NET MVC application on my local computer under IIS 7.5 (Windows
I'm writing a web service for my application and want to know the best
Without routing, HttpContext.Current.Session is there so I know that the StateServer is working. When

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.