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

From: Date: Mon, 09 Jul 2001 23:00:21 +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-57027@lists.php.net to get a copy of this message
Hi Noah, if you make the include file a .php file, then the browser will parse the code as a blank page.... whether or not they choose to look at the file, or try to fopen(etc) it......... Problem solved ;) At least I think that's safe-ish... James. "Noah Spitzer-Williams" <noahsw@cyberdude.com> wrote in message news:20010709221128.19007.qmail@pb1.pair.com... > 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 > >

« previous php.general (#57027) next »