Home > Backend Development > PHP Tutorial > require_once用绝对路径问题

require_once用绝对路径问题

WBOY
Release: 2016-06-23 14:02:40
Original
1918 people have browsed it


直接报错了

( ! ) 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解决

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