Home > Backend Development > PHP Tutorial > 给位大侠,请教出现如图情况是什么原因

给位大侠,请教出现如图情况是什么原因

WBOY
Release: 2016-06-13 12:20:08
Original
1050 people have browsed it

给位大侠,请问出现如图情况是什么原因
我在本地用阿帕奇测试是没有问题的;上传到公司的服务就出现这种情况了。用的是项目用的框架是TinkPHP。



------解决思路----------------------
服务器没定义目录索引或者没开启重写功能。
------解决思路----------------------
你这像是 IIS 的错误
启用父路径即可
------解决思路----------------------

$url = 'http://www.wanpusoft.com/weixin/Web/index.html';<br />print_r(get_headers($url));<br /><br />$url = 'http://www.wanpusoft.com/weixin/Wechar';<br />print_r(get_headers($url));
Copy after login
Array<br />(<br />    [0] => HTTP/1.1 200 OK<br />    [1] => Cache-Control: max-age=1296000<br />    [2] => Content-Type: text/html<br />    [3] => Last-Modified: Thu, 23 Apr 2015 07:53:40 GMT<br />    [4] => Accept-Ranges: bytes<br />    [5] => ETag: "30f6d99c9a7dd01:0"<br />    [6] => Server: Microsoft-IIS/7.0<br />    [7] => X-Powered-By: ASP.NET<br />    [8] => Date: Thu, 30 Apr 2015 07:28:33 GMT<br />    [9] => Connection: close<br />    [10] => Content-Length: 8746<br />)<br />Array<br />(<br />    [0] => HTTP/1.1 404 Not Found<br />    [1] => Cache-Control: private<br />    [2] => Content-Length: 1898<br />    [3] => Content-Type: text/html; charset=utf-8<br />    [4] => Server: Microsoft-IIS/7.0<br />    [5] => X-AspNet-Version: 4.0.30319<br />    [6] => X-Powered-By: ASP.NET<br />    [7] => Date: Thu, 30 Apr 2015 07:28:34 GMT<br />    [8] => Connection: close<br />)<br /><br />
Copy after login

可以看出 weixin/Wechar 不是目录
虽然 IIS7 是支持 PATH_INFO 的,但省略文件名是需要 url rewrite 才行的
------解决思路----------------------
TP ?
你那是写文件是出错了,请检查权限
另请清空 Runtime 目录

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