Re: how to hide dbconnect file if its in published directory?

From: Date: Tue, 10 Jul 2001 03:47:59 +0000
Subject: Re: how to hide dbconnect file if its in published directory?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-57060@lists.php.net to get a copy of this message
On Monday 09 July 2001 06:11 pm, Noah Spitzer-Williams wrote: > Hey guys, > > I come for advice once again. Say i have a file dbconnect.inc which > connects to my database. Now if this file is located in a directory > accessible for to the web is there anyway that if someone types in that > file i can detect it being accessed, instead of included, and redirect them > elsewhere? > > Thanks guys! > > - Noah The best compromise I have seen is to name your file -> somefile.inc.php -- Regards, John Weaver

« previous php.general (#57060) next »