MySQL Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsDatabasesMySQL Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Be the architects of evolution and help create the mobile internet future. It’s your move---enter to win here!
  #1  
Old October 6th, 1999, 11:05 PM
spaceman
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
How best do I keep my MySQL database connection password in my PHP script secure from prying eyes?

I have PHP3 scripts running on an Apache web server and connecting to a MySQL database. To connect to a database, my script can specify connection parameters of hostname, username, and password (I say 'can' because defaults are used if these parameters are left blank).

I want access to each database to be protected by a username and password, but I don't want to explicitly hard-code the password in my PHP script. What options do I have of keeping the password hidden from prying eyes but available to my PHP script?

Thanks very much.

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesMySQL Help > Password security in PHP scripts


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway