Learn the functions that Phpexcel recognize

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.