Php configuration records

Source: Internet
Author: User
Php configuration record: modify PHP. ini when an undefined variable or the $ _ GET [] $ _ POST [] error occurs.

Solution:
Modify the incorrect configuration of php. ini as follows:

Error_reporting = E_ALL &~ E_NOTICE

After the modification, restart Apache and you will not need to use isset for determination.

You can also write error_reporting (0) at the beginning of the program );

----------------------------------------------------------------------------------

Phpmyadmin displays "Cannot start session without errors, please check errors given in your PHP and/or webserver log file and configure your PHP installation properly. "most of the reasons are that php's temporary folder permissions are improperly set or the folder does not exist. php cannot write session files to this folder, to solve this problem, you must start with the temporary php folder. The cause of this error on my server is that I modified the administrator's username, and the temporary folder path does not exist.

Create a folder specifically used to store session temporary files in the php installation folder or other specified folders, such as D:/php/temp, grant the user the maximum permissions to the folder, such as modification, writing, and running permissions.

Open php. ini file (usually in the c: \ windows \ folder), find the session. the row save_path is in the temporary folder of the administrator by default, for example, C:/release e ~ 1/user name/LOCALS ~ 1/Temp: Change it to the above path, for example, D:/php/temp.

Save the php. ini file, restart the web server, and re-access

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.