Home >Backend Development >PHP Tutorial >php include的有关问题

php include的有关问题

WBOY
WBOYOriginal
2016-06-13 10:26:46956browse

php include的问题
include("ask_ftp.php");
正常的
include("http://www.xxx.com/ask_ftp.php");
就不正常了 
不知道应该怎么远程获取php文件 求大家帮助

------解决方案--------------------
这涉及到安全问题,所以默认是关闭了include打开远程文件的功能。如果你打开错误提示就能看到说不能打开一个url
当然如果你想的话可以修改 allow_url_open = On
------解决方案--------------------
这个默认是关闭的 如果非要使用的话就按上楼说的做吧 但这样做实在是不安全

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