Home >Backend Development >PHP Tutorial >How to set the maximum execution expiration time of the page in PHP
Generally, when uploading larger attachments, an error page indicating that the web page has expired will appear after more than 30 seconds. How to deal with this problem? The following is the processing method: 1. If it is your own server, you can configure it globally: set it in php.ini, the default is 30 seconds max_execution_time = 30 2. Virtual host, and the server allows the use of the ini_set() function , can be set in the php code: ini_set('max_execution_time',864000);
|