This might just come as a very silly question, but i am really frustrated of this not working.
I have a home file
<? include ("/production/fetch_order.php"); ?>
Warning: include(/production/fetch_order.php) [function.include]:
failed to open stream: No such file or directory in /path/to/home.php on line 119
Warning: include() [function.include]: Failed opening '/production/fetch_order.php'
for inclusion (include_path='.:/path/to/php/php5.3.6/lib/php') in
/path/to/home.php on line 119
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:
When adding a slash, it starts at the root directory of your system, without it, it looks in the current directory.