【php apache 诡异的问题】
【php apache 诡异的问题】
描述:
1.apache 的配置文件http.conf中 documentroot= d:/www
2.d:/www 中index.html 文件,在浏览器中显示it works 。代码如下:
it works
。
在地址栏输入localhost 可以成功打开页面。
3.d:/www 中 ind.php 文件,代码如下:
echo "welcom"?>
在地址栏输入localhost/ind.php 可以成功打开页面。页面显示welcome.
4.d:/www/php (文件目录改变了)中 index.php 文件(内容与ind.php一样),代码如下:
echo "welcome"?>
在地址栏输入localhost/php/ind.php ,提示错误信息404,not found.
说明文字有点长,但是实在是没弄明白这是什么情况 ,求路过高手给个解,拜谢~~
------解决方案--------------------请检查
1、php是否加载成功
2、x-application是否已经配置
3、php.ini的short_open_tag是否打开
------解决方案--------------------完整的错误信息是什么
------解决方案--------------------
你是说
d:/www/ind.php 可以用 http://localhost/ind.php 访问到
而
d:/www/php/ind.php 不能用 http://localhost/php/ind.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