PHP relative path problems

Source: Internet
Author: User
PHP relative path problems

PHP FastCgi in IIS

Require path cache problems

The require Series functions have the same relative paths.

  1. /* PHP FastCgi problems in IIS
  2. Require path cache problems
  3. The require Series functions have the same relative paths.
  4. For example :*/
  5. /Root/web/config. php
  6. /Root/web/admin/config. php
  7. The config. php code is different.
  8. /* As follows: execute the following code in sequence */
  9. /Root/php program code in the web Directory: require ('config/config. php'); // root/web/config. php
  10. Php code in the/root/web/admin Directory: require ('config/config. php'); // root/web/admin/config. php
  11. /Root/php program code in the web Directory: require ('config/config. php'); // root/web/admin/config. php
  12. The second config. php will overwrite the cache of the first config. php, and the third is/root/web/admin/config. php.

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.