dan_t Posted April 26, 2010 Share Posted April 26, 2010 Hi guys, When your messing around with a database on your localhost I know it's no big deal, but when you actually put it online the line of code you use to connect to the database like "localhost", "password" can't be seen by anyone else can it? I know php is a server-side language, but obviously people get to things they are not supposed to, and I was just wondering about that one due to putting in your password. Quote Link to comment Share on other sites More sharing options...
Pikachu2000 Posted April 26, 2010 Share Posted April 26, 2010 You can put it outside the web directory if you have access, but as long as the file is parsed by the php interpreter, it should be ok. Quote Link to comment Share on other sites More sharing options...
dan_t Posted April 26, 2010 Author Share Posted April 26, 2010 I thought so, I just wanted to be sure. Thanks Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.