AbydosGater Posted November 15, 2006 Share Posted November 15, 2006 Hey...I was just doing some work with flatfiles and i came across using file() on my config.php with my database information...It worked it displayed all of my information..I know that php has built in security for files like a config file so that the file can simpily be required from anywhere and have the variables displayed, it must be done locally...Im just wondering is it the same with file()?or can just anyone come alone and use file() and a foreach to echo all of my information??Thanks Link to comment https://forums.phpfreaks.com/topic/27342-file-use-to-hack/ Share on other sites More sharing options...
Jocka Posted November 15, 2006 Share Posted November 15, 2006 not possible. They'd have to have the information to get into your server first. FTP info. That was one of my first questions when I started PHP. If you'd like to see for yourself, then try to read index.php off of these forums on ur server. You might get the tables and such but no PHP code. Link to comment https://forums.phpfreaks.com/topic/27342-file-use-to-hack/#findComment-125017 Share on other sites More sharing options...
AbydosGater Posted November 15, 2006 Author Share Posted November 15, 2006 Yeah! Got it! thanks Link to comment https://forums.phpfreaks.com/topic/27342-file-use-to-hack/#findComment-125028 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.