For Programmers: Free Programming Magazines  


Home > Archive > PHP Pear > May 2005 > Re: [PEAR] Config with xml and dsn info









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: [PEAR] Config with xml and dsn info
Ryan King

2005-05-26, 8:59 pm

On May 22, 2005, at 7:11 PM, Dan Rossi wrote:

> Another question about loading xml settings via Config. For my
> applications I have the database dsn info in the xml and abviouslly
> is readable, what is the best way to prevent it being readable or
> merge the info from another settings array. Would this be an Apache
> htaccess question ?


I'm not sure what you're asking here.

-ryan
Dan Rossi

2005-05-26, 8:59 pm


On 23/05/2005, at 3:36 PM, Ryan King wrote:

> On May 22, 2005, at 7:11 PM, Dan Rossi wrote:
>
>
> I'm not sure what you're asking here.
>
> -ryan
>
>


Ok i store the dsn connection information to the database in my xml
config. This connection info is then readable, its ok for an intranet
app but for a public website maybe not, what could be the best way
while still being able to store my configs in xml ?
Jeff MacDonald

2005-05-26, 8:59 pm

On Mon, May 23, 2005 at 04:09:09PM +1000, Dan Rossi wrote:
>

[..snipped..]
> Ok i store the dsn connection information to the database in my xml
> config. This connection info is then readable, its ok for an intranet
> app but for a public website maybe not, what could be the best way
> while still being able to store my configs in xml ?
>


either put the xml file outside of DocumentRoot or use .htaccess to block
it.

HTH

regards,
J
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com