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

2001-07-09 Thread John Weaver
On Tuesday 10 July 1979 12:39 am, [EMAIL PROTECTED] wrote: > on 7/10/01 12:30 AM, John Weaver at [EMAIL PROTECTED] wrote: > > Sorry, I should have been more clear. If you write modular code, your > > included file will be nothing but a group of functions. Call a file with

Re: [PHP] how to hide dbconnect file if its in publisheddirectory?

2001-07-09 Thread John Weaver
gt; because the server won't do the php code in an inc file... > > how do I change this!? Name the file ... functions.inc.php and insure that you have the php start and end tags on it. -- Regards, John Weaver -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-ma

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

2001-07-09 Thread John Weaver
; document_root. > > -Rasmus Sorry, I should have been more clear. If you write modular code, your included file will be nothing but a group of functions. Call a file with nothing but functions in it and you get; . I can't see the security problem you refer to. -- Regards, John Weave

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

2001-07-09 Thread John Weaver
e 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 -- PHP General Mailing List (http://