Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


How can we increase the execution time of a PHP script?

Answers were Sorted based on User's Feedback



How can we increase the execution time of a PHP script?..

Answer / devasundaram

Three ways we can solve this.

1) set_time_limit() function

2) ini_set() function

3) Modifying `max_execution_time' value in PHP
configuration(php.ini) file

1 and 2 are using for temporarily purpose. 3 is for permanent.

Is This Answer Correct ?    66 Yes 9 No

How can we increase the execution time of a PHP script?..

Answer / rakesh kumar nautiyal

with the help of set_time_limit

Is This Answer Correct ?    61 Yes 16 No

How can we increase the execution time of a PHP script?..

Answer / raj

Through PHP INI FILE Max_exection_time function

Is This Answer Correct ?    19 Yes 4 No

How can we increase the execution time of a PHP script?..

Answer / anonymous

Using the funtion set_time_limit().It sets the number of
seconds a script is allowed to run .If this is reached
script returns a fatal error.The default limit is 30
seconds .If seconds is set to zero
no time limit is imposed.When called , set_time_limit()
restarts the timeout counter from zero.If the timeout is
the default 30 seconds,and 25 seconds into script execution
a call such as set_time_limit(20)
is made,the script will run for a total of 45 seconds
before timing out.

Is This Answer Correct ?    27 Yes 13 No

How can we increase the execution time of a PHP script?..

Answer / chheena

Although there are more then one way to increase the
execution time but better to use
<?php set_time_limit(3600); ?>//increase the execution time
to 1hour,
//put above line on the top of your code

Is This Answer Correct ?    13 Yes 8 No

How can we increase the execution time of a PHP script?..

Answer / rachna

In which page we want to increase the execution time of the queries we put set_time_limit(3600); in that page.

Is This Answer Correct ?    6 Yes 2 No

How can we increase the execution time of a PHP script?..

Answer / aamir

set_time_limit(3600);

Is This Answer Correct ?    6 Yes 4 No

How can we increase the execution time of a PHP script?..

Answer / sibtain

//set_time_limit(600);//temporary way
//ini_set();// temporary way
//C:\wamp\bin\apache\Apache2.2.11\bin\php.config ///permanent
way

Is This Answer Correct ?    1 Yes 0 No

How can we increase the execution time of a PHP script?..

Answer / waseem khan

set_time_limit(-1)

Is This Answer Correct ?    0 Yes 0 No

How can we increase the execution time of a PHP script?..

Answer / abhi

by changing the following setup at php.inimax_execution_time
= 30
; Maximum execution time of each script, in seconds

Is This Answer Correct ?    2 Yes 4 No

Post New Answer

More PHP Interview Questions

what is PHP accelerator ?

2 Answers  


Who is the father of PHP and explain the changes in PHP versions?

15 Answers   ADISoft Tech, Genpact, PropTiger, TWA,


Is age interval or ordinal?

0 Answers  


What is the PHP predefined variable that tells the What types of images that PHP supports?

1 Answers  


What does a delimiter do in mysql?

0 Answers  


What are the steps for the payment gateway processing?

0 Answers  


How to convert the first character to upper case?

0 Answers  


How session manage in wordpress

1 Answers   HCL, ITBS, TCS,


Why laravel is the best php framework in 2019?

0 Answers  


why header() gives the error like header already sent in php please explain in brief

1 Answers   KMK,


hi recently i had faced an interview in that they asked me that php have faced the problem of y2k so which one is that year like 2030,2059 not remember exact year anybody will tell me pls?

1 Answers  


What is php and why we use it?

0 Answers  


Categories