Re: Re[6]: [PHP] HELP: Nested include(...)'s take relative paths not int uitively

From: Date: Wed, 11 Feb 2004 15:42:39 +0000
Subject: Re: Re[6]: [PHP] HELP: Nested include(...)'s take relative paths not int uitively
References: 1 2 3 4  Groups: php.general 
Request: Send a blank email to php-general+get-177409@lists.php.net to get a copy of this message
From: "Richard Davey" <rich@launchcode.co.uk> > JWH> I hope you are also denying access to .inc files otherwise we could view > JWH> your file as plain text. > > Please.. try ;) > > I used to call the file common.php until we had a rather large debate > about the correct naming convention for PHP include files on the PHP > Community list where various people convinced me that .inc is the > correct standard for include files. Heh.. I was just giving a heads up, not threatening. I personally don't care for .inc files that are in the web root. The ways to deny access to them vary across web servers and platforms, so it makes distributing your code a hassle. I know the issues with giving it a .php extension, also, but at least those issues I can control and fix and are not related to the OS or webserver. ---John Holmes...

« previous php.general (#177409) next »