Example of changing the php. ini configuration file-php Tutorial

Source: Internet
Author: User
Example of modifying the php. ini configuration file

  1. @ Ini_set ('memory _ limit ', '64m');/* Maximum memory size occupied by the script */
  2. @ Ini_set ('max _ execution_time ', '15');/* maximum script execution time */
  3. @ Ini_set ('post _ max_size ', '12m');/* Maximum form Upload size */
  4. @ Ini_set ('upload _ max_filesize ', '2m');/* Maximum upload size of a single file */
  5. @ Ini_set ('session. name', 'anhuizhaopin _ sessionid');/* sessionid name */
  6. @ Ini_set ('session. cookie_httponly ', '1');/* check whether the HTTPONLY attribute is added to the sessionid */
  7. @ Ini_set ('session. use_trans_sid ', '0');/* Do not try to get the sessionid from other places */
  8. @ Ini_set ('session. use_cookies ', '1');/* use cookies to pass sessionid */
  9. @ Ini_set ('session. auto_start ', '0');/* start session processing automatically */
  10. @ Ini_set ('session. cookie_lifetime ', '000000');/* session lifecycle */
  11. @ Ini_set ('session. gc_maxlifetime', '000000');/* gc time */
  12. @ Ini_set ('session. cache_expire ', '000000');/* client cache time */
  13. @ Ini_set ('File _ uploads ', '1');/* whether to enable file Upload */
  14. @ Ini_set ('upload _ tmp_dir ', 'f: \ tmp \');/* upload the file cache directory */

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.