Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister

Re: Re: Re: db user and cgi pardigm

by Trimbach (Curate)
on Mar 01, 2004 at 05:37 UTC ( #332789=note: print w/replies, xml ) Need Help??

in reply to Re: Re: db user and cgi pardigm
in thread db user and cgi pardigm

Well, if you're determined to hand-update your database by forcing yourself to manually type your db's ID and password each time, then by all means write to a delimited file first. However, that solution isn't typical; there are a number of ways to secure a database password in a CGI environment, the most common approach being putting the ID and password into a file that is outside of your web server's root directory, setting the appropriate permissions to limit access, and then 'INCLUDE'-ing or "USE"-ing the file into your CGI. It all depends on your level of paranoia.

Gary Blackburn
Trained Killer

Replies are listed 'Best First'.
Re: Re: Re: Re: db user and cgi pardigm
by astroboy (Chaplain) on Mar 01, 2004 at 10:59 UTC
    Exactly. Otherwise you're going to go to the trouble of writing a needlessly complex (and most likely inferior) solution to a problem that has already been solved by CGI and DBI.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://332789]
LanX sighs ... no idea stupid enough
[choroba]: "Smack My Bitch Up" did, though
[Eily]: that's the internet for you LanX
[Eily]: and I'm pretty sure there's a rule somewhere that states that the stupider the idea, the more likely it is to already have been done
zentara is thinking of moving to Mars to esacpe it all
[LanX]: Zentara eq Dr Manhatten ?
[zentara]: more like Dr. Helion3 :-)

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (13)
As of 2017-03-27 15:23 GMT
Find Nodes?
    Voting Booth?
    Should Pluto Get Its Planethood Back?

    Results (320 votes). Check out past polls.