Re: Includes failing when site is accessed by IP?

From: Date: Tue, 27 May 2003 09:17:22 +0000
Subject: Re: Includes failing when site is accessed by IP?
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-149065@lists.php.net to get a copy of this message
As I said, it's included using an include_path set in a .htaccess file, and it works fine when not accessed by IP. That's definitley not the problem. Ian Mantripp wrote:
on Tue, May 27, 2003, Leif K-Brooks wrote:
My site is http://ecritters.biz/ecnewsecsite/. It works fine, but when I access it by its ip address (http://216.127.80.69/ecnewsecsite/), including fails. The file being included is stored below the web root using include_path which is set in a .htaccess file. Anyone know what's going on?
I had a similar error sometime ago, changing from : include ("/some_file.php"); to include ("./some_file.php"); solved the problem Ian
-- The above message is encrypted with double rot13 encoding. Any unauthorized attempt to decrypt it will be prosecuted to the full extent of the law.

« previous php.general (#149065) next »