noob question..

Questions about the MySQL, PostgreSQL, and most other databases, as well as using it with PHP can be asked here.

Moderator: General Moderators

Post Reply
mickd
Forum Contributor
Posts: 397
Joined: Tue Jun 21, 2005 9:05 am
Location: Australia

noob question..

Post by mickd »

hi, i was just wondering if there was a way to hide or not have your mysql database name and password in your code (mysql_connect) for scripts that require you to check if something exists or to add/delete something into the database. im just making sure that if i have to have my database name and password in the script that it cant be extracted from the code ;)

thanks for any replies and helpers in advance and sorry if this sounds very noob to ask :oops:

thanks :)
User avatar
neophyte
DevNet Resident
Posts: 1537
Joined: Tue Jan 20, 2004 4:58 pm
Location: Minnesota

Post by neophyte »

If the issue is security you can put the db username and password in a non -public directory if you wish. But you still have to have it in a file.
Post Reply