7083Re: [NH] Need help with path for PHP incude
- Mar 6, 2012Mick Housel wrote:
> include("http://epicroadtrips.us/2011/mtown2gv_nov_2011_p1/w1navigation.php");Yes, you can. Not only will this fail in certain configs
> (long line above)
> You can't get any more straightforward than completely defining the
> path, my preference.
(allow_url_fopen, allow_url_include): There's no point using a slow http
request via the network when the file is on the same disk.
Use an absolute path instead, and prepend it with the server var
include $_SERVER['DOCUMENT_ROOT'] .
- << Previous post in topic Next post in topic >>