PHP relative path problem

WBOY
Release: 2016-07-25 09:10:59
Original
885 people have browsed it

Problem with PHP FastCgi under IIS

require path cache problem

require series functions contain the same relative path

  1. /*Problems with PHP FastCgi under IIS
  2. require path caching issues
  3. require series functions contain the same relative paths
  4. For example: */
  5.  /root/web/config/config.php
  6.  /root/web/admin /config/config.php
  7.  The code of config.php is different
  8.  /*As follows: Execute the following codes in sequence*/
  9.   The PHP program code in the /root/web directory: require('config/config.php'); // /root/web/config/config.php
  10.    PHP program code in the /root/web/admin directory: require('config/config.php'); ///root/web/admin/config/config.php
  11.   / PHP program code in the root/web directory: require('config/config.php'); ///root/web/admin/config/config.php
  12.   The second config.php will replace the first config.php The cache is overwritten, and the third execution uses /root/web/admin/config/config.php.
Copy code


Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template