Jump to content

file().. Use to hack??


AbydosGater

Recommended Posts

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

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.