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 inc
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.
Seems that path is not correct, try:
<? include ("production/fetch_order.php"); ?>
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');