Αποτελέσματα Αναζήτησης
23 Ιουν 2016 · Increasing the timeout in php.ini by adding a line: max_execution_time = {number of seconds i.e. 60 for one minute} Increasing the timeout in your script itself by adding: ini_set ('max_execution_time',' {number of seconds i.e. 60 for one minute}');
14 Μαΐ 2012 · There is an option "CURLOPT_TIMEOUT" you could use to configure the timeout for your request (there's also an option "CURLOPT_CONNECTTIMEOUT"). You can even specify the timeouts in millisecond resolution (CURLOPT_TIMEOUT_MS / CURLOPT_CONNECTTIMEOUT_MS).
11 Ιουλ 2008 · To prevent the script from timing out, I need to increase the execution time of the specific processing script. Here's how I do it. The PHP ini_set('max_execution_time', 300); //300 seconds = 5 minutes Place this at the top of your PHP script and let your script loose!
18 Οκτ 2023 · There are 4 ways to change the execution time limit in PHP: Change max_execution_time = SECONDS in php.ini. On an Apache webserver, add php_value max_execution_time SECONDS in the .htaccess file. Use set_time_limit(SECONDS) in the PHP script. Finally, we can set the time limit using ini_set("max_execution_time", SECONDS).
21 Μαΐ 2023 · If you want to change the timeout value, you can modify this directive in the php.ini file, or you can also set it programmatically within your PHP script using the ini_set() function or the set_time_limit() function.
17 Αυγ 2023 · Another way to set PHP session timeout is by using the ini_set() function in a PHP script. Using php.ini settings for session timeout. Find the directive session.gc_maxlifetime and choose smallest possible.
ini_set (string $option, string | int | float | bool | null $value): string | false. Sets the value of the given configuration option. The configuration option will keep this new value during the script's execution, and will be restored at the script's ending.