当前位置:Gxlcms > PHP教程 > require_once用绝对路径问题

require_once用绝对路径问题

时间:2021-07-01 10:21:17 帮助过:83人阅读


直接报错了

( ! ) Warning: require_once(): http:// wrapper is disabled in the server configuration by allow_url_include=0 in E:\wamp\www\ruixiang\upload.php on line 1
Call Stack
# Time Memory Function Location
1 0.0003 137536 {main}( ) ..\upload.php:0

( ! ) Warning: require_once(http://127.0.0.1/ruixiang/gongxiang.php): failed to open stream: no suitable wrapper could be found in E:\wamp\www\ruixiang\upload.php on line 1
Call Stack
# Time Memory Function Location
1 0.0003 137536 {main}( ) ..\upload.php:0

( ! ) Fatal error: require_once(): Failed opening required 'http://127.0.0.1/ruixiang/gongxiang.php' (include_path='.;C:\php\pear') in E:\wamp\www\ruixiang\upload.php on line 1



回复讨论(解决方案)

不能这样用,你能这样用那不是也可以把百度新浪那些php文件也能包含进来(只要知道地址),请用物理路径

物理路径 是什么。。

d:/wamp/wwwroot/xxx/xxx/xx.php

ok解决ok解决ok解决

人气教程排行