I’m not new to PHP, but I haven’t spent the time needed to be considered good at it. I know enough to do what I want mostly, but now I’m working with MySQL and a concern popped into my head like a bomb going off…
Is my php code on my site secure from viewing? A tutorial I’m working through now talks about connecting to my database, and in the code is
[CODE]$connid = mysql_connect (‘servername’ , ‘username’ , ‘password’);
What keeps someone from reading my source, getting that login information, and compromising my database?
The database contains useless info for anything else but my specific task at hand, not like login info or anything.
And I’m real careful with my ftp info and database info. I’m just talking about someone getting that info out of a folder on my site, like view source for html.
Thanks!
Hop