为什么is_dir($ _ SERVER ['DOCUMENT_ROOT'])在Windows XP中产生错误? [英] Why does is_dir($_SERVER['DOCUMENT_ROOT']) produce false in Windows XP?
本文介绍了为什么is_dir($ _ SERVER ['DOCUMENT_ROOT'])在Windows XP中产生错误?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
环境:
Windows XP,Apache 1.33,PHP 5.2.0
[PHP]
< ;?
echo is_dir($ _ SERVER [''DOCUMENT_ROOT''])。 "对于dir =" 。
$ _SERVER [''DOCUMENT_ROOT'']);
?>
[/ PHP]
>
产生
for dir = C:/ program files / apache group / apache / htdocs
为什么会出现这种情况?我该怎么做才能规避
这个?
Thanx
菲尔
解决方案
_SERVER [''DOCUMENT_ROOT''])。 "对于dir =" 。
_SERVER [''DOCUMENT_ROOT'']);
?>
[/ PHP] <产生
代表dir = C:/ program files / apache group / apache / htdocs
为什么会出现这种情况?我该怎么做才能规避
这个?
Thanx
Phil
comp.lang.php写道:
Env:
Windows XP,Apache 1.33, PHP 5.2.0
[PHP]
< ;?
echo is_dir(
Env:
Windows XP, Apache 1.33, PHP 5.2.0
[PHP]
<?
echo is_dir($_SERVER[''DOCUMENT_ROOT'']) . " for dir = " .
$_SERVER[''DOCUMENT_ROOT'']);
?>
[/PHP]
Produces
for dir = C:/program files/apache group/apache/htdocsWhy is it in Windows that this occurs? What can I do to circumvent
this?
Thanx
Phil
解决方案_SERVER[''DOCUMENT_ROOT'']) . " for dir = " .
_SERVER[''DOCUMENT_ROOT'']);
?>
[/PHP]
Produces
for dir = C:/program files/apache group/apache/htdocsWhy is it in Windows that this occurs? What can I do to circumvent
this?
Thanx
Phil
comp.lang.php wrote:
Env:
Windows XP, Apache 1.33, PHP 5.2.0
[PHP]
<?
echo is_dir(
这篇关于为什么is_dir($ _ SERVER ['DOCUMENT_ROOT'])在Windows XP中产生错误?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文