Yahoo Αναζήτηση Διαδυκτίου

Αποτελέσματα Αναζήτησης

  1. 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}');

  2. 17 Αυγ 2012 · If you're using PHP_CLI SAPI and getting error "Maximum execution time of N seconds exceeded" where N is an integer value, try to call set_time_limit(0) every M seconds or every iteration. For example: <?php require_once('db.php'); $stmt = $db->query($sql); while ($row = $stmt->fetchRow()) { set_time_limit(0); // your code here } ?>

  3. set_time_limit (int $seconds): bool. Set the number of seconds a script is allowed to run. If this is reached, the script returns a fatal error. The default limit is 30 seconds or, if it exists, the max_execution_time value defined in the php.ini. When called, set_time_limit () restarts the timeout counter from zero.

  4. 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).

  5. ini_set() Function. The ini_set() function in PHP sets the value of a configuration option. One such option is timeout, which sets the maximum execution time in seconds for PHP scripts. Syntax: php ini_set(string $option, string $value) Parameters: * $option: The configuration option to set (timeout in this case). * $value: The value to set for ...

  6. 11 Ιαν 2024 · Similar to execution time, you can set this limit within your script using the ini_set() function: ini_set('memory_limit', '128M'); // Sets the memory limit to 128 Megabytes. Alternatively, modify the memory_limit directive in the php.ini file: memory_limit = 128M.

  7. set_time_limit ( int $seconds ): bool. Set the number of seconds a script is allowed to run. If this is reached, the script returns a fatal error. The default limit is 30 seconds or, if it exists, the max_execution_time value defined in the php.ini. When called, set_time_limit restarts the timeout counter from zero.

  1. Γίνεται επίσης αναζήτηση για