file_get_contents() how to fix error “Failed to open stream”, “No such file”

后端 未结 8 931
傲寒
傲寒 2020-12-01 17:35

I\'m getting the following error when I try to run my PHP script:

failed to open stream: No such file or directory in C:\\wamp\\www\\LOF\\Data.php on

8条回答
  •  我在风中等你
    2020-12-01 18:32

    You may try using this

    
    

    The "./" allows to search url from current directory. You may use

    chdir($_SERVER["DOCUMENT_ROOT"]);
    

    to change current working directory to root of your website if path is relative from root directory.

提交回复
热议问题