What do you want to save?
Add Code snippet
New code examples
-
PHP 2022-02-28 16:00:02
max execution time exceeded php
//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 Execut... Add solution -
PHP 2021-11-17 01:29:19
SYNCHRONOUS CURL IN PHP
//usually when you run a curl in php, //your session will be affected and will not respond //this will happen if your curl request will take too long to respond. url: index.php?session=name <?php set_time_limit(0); $start_time = microtime(true); s... Add solution -
PHP 2021-11-11 03:22:08
timeout php
//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 Execut... Add solution -
PHP 2021-10-29 23:39:05
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 Execut... Add solution -
PHP 2021-09-30 05:53:02
image upload with name change in php
$temp = explode(".", $_FILES["file"]["name"]); $newfilename = round(microtime(true)) . '.' . end($temp); move_uploaded_file($_FILES["file"]["tmp_name"], "../img/imageDirectory/" . $newfilename); Add solution