I usually have a directory called html where all my php files are and 
secure where any secure stuff (like db connects) reside.  Then, all I do 
is include the file


Obviously html maps to a web server path but secure doesn't.


John Weaver wrote:

>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
>>Thanks guys!
>>- Noah
>The best compromise I have seen is to name your file -> somefile.inc.php

Mark Ferraretto                 Phone:  +61 8 8396 2448
Ferraretto IT Services            Fax:  +61 8 8396 7176
26 Observation Drive           Mobile:  +61 407 959 719
Highbury SA 5089                Email:  [EMAIL PROTECTED] 
Australia                         ICQ:  64748102

PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to