gmoss Posted February 3, 2012 Share Posted February 3, 2012 Hello, I'm getting my feet wet with PHP and databases. I've read that I can provide the login for a database in a separate file, which I can place in a directory located OUTSIDE of my site (parent folder). This works fine at the isp where my site is being hosted. However, now I want to do the same thing at a site that is hosted at (ugh) GoDaddy. Unfortunately, GoDaddy does not allow access outside of the site (aka parent folder of the site). So now where am I supposed to put the file with the database login info in it so it will be secure? Thank you. Quote Link to comment https://forums.phpfreaks.com/topic/256291-where-to-place-password-files/ Share on other sites More sharing options...
scootstah Posted February 3, 2012 Share Posted February 3, 2012 It will be secure anywhere. The only way people can download the php file is to gain access to the server with FTP or such. Quote Link to comment https://forums.phpfreaks.com/topic/256291-where-to-place-password-files/#findComment-1313863 Share on other sites More sharing options...
wigpip Posted February 3, 2012 Share Posted February 3, 2012 one thing you can do to increase security is set the permissions to 700 on the folder with your db connect file, so direct browser access will give a 403 Not Found Quote Link to comment https://forums.phpfreaks.com/topic/256291-where-to-place-password-files/#findComment-1313864 Share on other sites More sharing options...
gmoss Posted February 3, 2012 Author Share Posted February 3, 2012 Good to know! Thank you for the replies! Quote Link to comment https://forums.phpfreaks.com/topic/256291-where-to-place-password-files/#findComment-1313865 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.