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

后端 未结 3 1761
时光说笑
时光说笑 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:19

    Make sure that the path you're referencing ('/production/fetch_order.php') is provided either as an absolute path from the file system root directory or as a relative path from the current file (home.php).

    include('production/fetch_order.php');
    

    OR

    include(dirname(__FILE__) . '/production/fetch_order.php');
    

提交回复
热议问题