Home  >  Article  >  Backend Development  >  打开非站点目录下的程序,该如何处理

打开非站点目录下的程序,该如何处理

WBOY
WBOYOriginal
2016-06-13 13:44:49729browse

打开非站点目录下的程序
一个系统下有如下两个文件夹
html
post
把html设置为WEB根目录,html下有个程序a.php,post下有个b.php
在a.php下可以通过../post/b.php访问到b.php,
但如果要通过a.php跳转到b.php,就会出错,请问有没有办法解决,假设不把post目录移到html目录下的话。

------解决方案--------------------
那是必然的,http 只能访问 web 服务授权的资源
------解决方案--------------------
你的post目录都在根目录以外了。http是访问不到的。
------解决方案--------------------
不在web服务器下,怎么访问啊。

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