PHP Configuration Record

Source: Internet
Author: User
Modify PHP.ini when there are no variables defined or directly using the $_get[] $_post[] Error

Solution:
Modify the error configuration for php.ini as follows:

error_reporting = E_all & ~e_notice

After modified, restart Apache, you can not isset to judge.

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

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

phpMyAdmin appears "Cannot start session without errors, please check errors given in your PHP and/or webserver log file and conf Igure your PHP installation properly. " Most of the reason is that php temporary folder permissions are improperly set or the folder does not exist, PHP can not write the session file to the folder caused by, so to solve this problem, you need to start with the temporary PHP folder. The reason my server has this error is that I modified the administrator's username, causing the temporary folder path to not exist.

In the installation folder of PHP, or under other specified folders, create a folder dedicated to storing session temporary files, such as: D:/php/temp, giving the user the maximum permissions on the folder, such as Modify, write, run, and so on.

Open the php.ini file (typically under the C:\windows\ folder), find Session.save_path this line, by default in the Administrator user's temporary folder, such as: c:/docume~1/user name/locals~1/temp, Modify to the above path, such as: D:/php/temp.

Save the php.ini file, restart the Web server, revisit

  • Related Article

    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.