Answers for "php set time limit to unlimited"

PHP
3

php time limit

set_time_limit(120); // Time in seconds
set_time_limit(0);   // unlimited
Posted by: Guest on September-07-2021
4

php time a script

//place this before any script you want to calculate time
$time_start = microtime(true); 

//sample script
for($i=0; $i<1000; $i++){
 //do anything
}

$time_end = microtime(true);
$execution_time = ($time_end - $time_start);
echo '<b>Total Execution Time:</b> '.($execution_time*1000).'Milliseconds';
Posted by: Guest on April-28-2020

Browse Popular Code Answers by Language