QNimate

  • CoursesVideos
  • WP PremiumPlugins
  • DemosLab
  • Home
  • QIdea
  • QTrack
Home Carbon Ads Increase PHP Script Execution Time

Increase PHP Script Execution Time

php.ini file defines the maximum number of seconds a PHP script can run. If your script exceeds the time then web server will send a request timeout HTTP response error.

You can change the script execution time using this one line of code

<?php

ini_set('max_execution_time', 300); //300 seconds = 5 minutes

Put this code in the beginning of your script.

If you want to run the script infinitely then turn of script execution time limit feature using this one line of code

<?php

set_time_limit(0);
Dec 2, 2014Narayan Prusty
Spypig AlternativeCreate a Camera App using Intel XDK

Leave a Reply Cancel reply

To create code blocks or other preformatted text, indent by four spaces:

    This will be displayed in a monospaced font. The first four
    spaces will be stripped off, but all other whitespace
    will be preserved.
    
    Markdown is turned off in code blocks:
     [This is not a link](http://example.com)

To create not a block, but an inline code span, use backticks:

Here is some inline `code`.

For more help see http://daringfireball.net/projects/markdown/syntax

Narayan Prusty

I am a software engineer specialising in Blockchain, DevOps and Go/JavaScript. This is my personal blog where I write about things that I learn and feel interesting to share.

8 years ago Web Development
Share this
0
GooglePlus
0
Facebook
0
Twitter
0
Linkedin
Related Articles
  • How WordPress executes Async Cron without effecting page load time
  • PHP Asynchronous Cron Job – Scheduling Tasks
  • Javascript “use strict” Tutorial with Examples
  • JavaScript Limit Function Call Rate
  • Push Technology In PHP
Our Sponsor
My Books

2014 - 2015 © QNimate
All tutorials MIT license