Re: how to hide dbconnect file if its in published directory?
| From: | John Weaver | Date: | Tue, 10 Jul 2001 07:19:05 +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-57095@lists.php.net to get a copy of this message | ||
On Tuesday 10 July 1979 12:39 am, zerosumzero@yahoo.com wrote:
> on 7/10/01 12:30 AM, John Weaver at jww@jweaver.net 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
> > nothing but functions in it and you get;
> > <HTML><HEAD></HEAD></HTML>. I
> > can't see the security problem you refer to.
>
> Ahhh!
>
> I have this problem now ... do you put the <?php ?> tags on an inc file?
>
> If not how do you keep people from reading it?
Yes, I include the php tags so that PHP will parse it as php code.
--
Regards,
John Weaver