include(): Failed to open stream: No such file or directory

后端 未结 3 1748
时光说笑
时光说笑 2021-01-17 14:39

This might just come as a very silly question, but i am really frustrated of this not working. I have a home file (home.php) which has contains

3条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-01-17 15:09

    You are using an absolute path (/) at the start of the line, you need to remove that slash and it would be a relative path, example:

    production/fetch_order.php
    

    When adding a slash, it starts at the root directory of your system, without it, it looks in the current directory.

提交回复
热议问题