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. Link to comment https://forums.phpfreaks.com/topic/199728-connection/ 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. Link to comment https://forums.phpfreaks.com/topic/199728-connection/#findComment-1048289 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 Link to comment https://forums.phpfreaks.com/topic/199728-connection/#findComment-1048296 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.