I have a PHP script called constants.php, in there I have a lot of valuable data, like my MySQL information, etc.
Is it possible to access that script outside my machine? Lets say, using the following: include http://www.fakewebsite.com/config/constants.php
Well, yes and no.
Yes: They will be able to access the output of the file
constants.php(however most likely it will be blank).No: They won’t be able to access your variables. You can only access these before PHP has been parsed.