Re: Include Files

From: Date: Tue, 25 Jul 2000 14:25:40 +0000
Subject: Re: Include Files
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-8046@lists.php.net to get a copy of this message
On Tue, 25 Jul 2000, Michael Pohl wrote: > I made the mistake of using the extension .inc as opposed to .php for my > include files, which means that the they can be viewed as text. If I'd > named them PHP they would never be sent without being executed, which > means that nobody would be able to see my code and passwords and all that. > So, I simply want to add .inc to the list of extensions that PHP will > execute... how would I go about doing this... I'm guessing I'd add a line > to my httpd.conf file or something... but what is the correct syntax? Hi Jeff-- A better solution would be to put your include directory outside your Apache document tree. That way if your Apache config goes crazy insane, stops executing .php files, and instead displays them as plain text, your .inc files still won't be available via URLs. And since .inc files often include things like db usernames and passwords, that would be a Good Thing. michael

« previous php.general (#8046) next »