1. Ini_set (); PHP built in the code to set some properties in the php.ini file, the function when the execution, the script ends, the settings expire,
Like what:
@ ini_set (' memory_limit ', ' 64M ');
Memory_limit sets the maximum number of bytes of memory that a script can request, which facilitates writing a bad script that consumes the available memory on the server [email protected] to represent the output error;
@ini_set (' Display_error ', 1)
Set the category of the error message
@ini_set (' Session.auto_start ', 0)
Whether automatically open session processing, 1-Program without session_start () to manually open the session can also be used; 0 need to open session manually
@ini_set (' Session.cache_expire ', 180);
' Session.cache_expire ': Specifies a time limit (minutes) for the session page to be saved in the client cache for 180 minutes. If Session.cache_limiter=nocache is set, the settings here are invalid
@ini_set (' session.use_cookies ', 1);
' Session.use_cookies ': whether to use cookies to save the session ID on the client
Ini_set (' Max_execution_time ', 1)
If there is a project that takes a long time to complete, the server will forcibly abort the executing program after 30S. The workaround is to manually set the value of Max_execution_time in php.ini, but it is not possible to modify it directly in the file, it is best to set it in the program .. Ini_set (' Max_execution_time ', 0) 0 means there is no execution time limit, but it is better to set a real number or the server may explode
Learn the functions that Phpexcel recognize