Re: [PHP] Re: Protecting include files

2003-02-07 Thread Daniel Page
> I have used a few different Web hosting companies, and I > have never seen a case where my home directory was my > document root. I have always had a directory like > public_html/ or www/ that was my personal document root, so > as long as I don't place files in there, they are not > accessible v

Re: [PHP] Re: Protecting include files

2003-02-07 Thread Chris Shiflett
--- Daniel Page <[EMAIL PROTECTED]> wrote: > If someone wants to call your .inc file like > http://www.my.site/lib.inc they will see the code, > as it is a text file. OK, we all know that. No, we don't, because that is not entirely correct. There are many cases where your Web server will not serve

[PHP] Re: Protecting include files

2003-02-07 Thread Daniel Page
If someone wants to call your .inc file like http://www.my.site/lib.inc they will see the code, as it is a text file. OK, we all know that. As the .inc file is in reality a renamed php script, containing variables, functions, etc, if you call it .php instead of .inc, it will be parsed by PHP, but