failed to open stream: no suitable wrapper could be found

后端 未结 4 1382
没有蜡笔的小新
没有蜡笔的小新 2021-01-01 16:33

hello i am implementing php files from one website into another and here is the following error message i am getting when trying to open the following page with implemente

4条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2021-01-01 16:35

    Warning: include() [function.include]: URL file-access is disabled in the server configuration in /home/content/91/8151691/html/HolidaySavers.ca/europe-destinations-canada.php on line 52
    

    says it all. I believe this is called XXS. It appears you're attempting to include a URL based file which is denied in your server configuration which is either one of two things.

    1. You're attempting to include the file on site B from site A which you would then use instead of include('WhateverFile'); file_get_contents('WhateverFile'); however this will only return the client side data as it is an HTTP request;

    2. You've duplicated the file on site B and forgot to update the domain configuration. Be sure that the include path reflects the site you're running the script on ie.

      include(dir($_SERVER['SCRIPT_FILENAME']) . DIRECTORY_SEPARATOR . 'WhateverFile.php');
      

    In any case. I would have to actually examine the line 52 on the said file to see why PHP is complaining to you in detail lol

提交回复
热议问题