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 <? include ("/production/fetch_order.php"); ?>
. As it can be seen i am trying to access a file from home.php. The file is named as fetch_order.php
which is in the production folder. My path is correct, the spellings are absolutely correct too. However i end up with this error:
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
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');
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With