Absolute path problem with require_once

Source: Internet
Author: User

Direct error.

( ! ) Warning:require_once ():/HTTP wrapper is disabled in the server configuration by allow_url_include=0 in E:\wamp\www\rui xiang\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



Reply to discussion (solution)

Can't use this, you can use that is not also can Baidu Sina those php files can also be included (just know the address), please use the physical path

What the physical path is:

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

OK solve OK fix ok

  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.