music_lp90 Posted October 7, 2007 Report Share Posted October 7, 2007 I have a php page that has my connection script to connect to my mysql database and I include it on any page that I need to connect to the database with. Can someone use that page to gain access to my database by typing in the url to that connection page? Something like www.whatever.com/connection_page.php. I'm guessing probably not, because I think this is a common thing that developers do, but maybe they protect it somehow. Thanks for your help! Link to comment Share on other sites More sharing options...
justsomeguy Posted October 7, 2007 Report Share Posted October 7, 2007 Other scripts on the same server would be able to include it, but anyone trying to include a file using http would get the results of the file. Open the file yourself in a browser to see what someone would be able to include from another server. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now