您好,欢迎来到三六零分类信息网!老站,搜索引擎当天收录,欢迎发信息

require_once用绝对路径问题

2024/11/3 13:22:27发布46次查看
直接报错了
( ! ) 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解决
该用户其它信息

VIP推荐

免费发布信息,免费发布B2B信息网站平台 - 三六零分类信息网 沪ICP备09012988号-2
企业名录 Product