Home  >  Article  >  php教程  >  IIS下PHP is_dir()/mkdir() 绝对路径目录BUg

IIS下PHP is_dir()/mkdir() 绝对路径目录BUg

WBOY
WBOYOriginal
2016-06-08 17:22:211434browse

在iis+php环境中is_dir()与mkdir()的用法在与apache中用法是一样的,但是反应的路径会有所区别,下面我简单介绍一下。

<script>ec(2);</script>

is_dir('/abc');正常情况下应该是判断web应用根目录下是否有test存在。但在IIS下,这时判断的是分区根目录。

如果用mkdir('/abc')建立的目录将跑到分区根目录下去。

所以,IIS下php目录相关的操作,现在只能用相对路径或者物理路径。

Statement:
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