change max_execution_time php on script
By default, the maximum execution time for PHP scripts is set to 30 seconds. If a script takes more than 30 seconds, PHP stops the script and returns an error.
You can change the script run time by changing the max_execution_time directive in the php.ini file.
When a script is called, set_time_limit function restarts the timeout counter from zero. It means, if default timer is set to 30 sec,
and 20 sec is specified in function set_time_limit(), then script will run for 45 seconds. If 0sec is specified in this function, script takes unlimited time.
Set Max_Execution_Time globally in php. ini
1. Locate and open your PHP build folder.
2. Find the php.ini file and open it.
3. Find the following line in the text configuration file – max_execution_time=30.
4. Change the value 30 to the value of choice, Remember, this value is in seconds.
5. Save & Close.
/*
I hope it will help you.
Namaste
Stay Home Stay Safe
*/
Also in PHP:
- 3d array search
- $db = new PDO
- console.log equivalent php
- Builder::unique() laravel
- date("Y-m-d",
- check if char exists in string php
- console.log php variables
- dropzone in php
- drop down php form retrieve data from database
- errno: 150 foreign key constraint is incorrectly formed laravel 8
- 30 numbers random string in php
- db seed specific seeder
- Allowed memory size of 134217728 bytes exhausted laravel
- download php 7.4 ubuntu
- Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 20480 bytes) in /var/www/html/system/core/Input.php on line 190
- composer set php version
- PHP Fatal error: Composer detected issues in your platform: Your Composer depen dencies require a PHP version ">= 7.3.0". You are running 7.2.34.
- check if astring is apart of another string in php
- date() today php
- date format php example
- Connecting objects PHP MYPHPSQL
- In Connection.php line 1262: Class 'PDO' not found
- artisan show routes
- php switch break