Hi,
Not so very long ago, my hosting company had a problem with PHP and disabled this for a day or so.
When I visited my PHP build forum, I noticed that while PHP was not functioning on the server, the webpage revealed most of it's code.
I decided to test this by putting an "include" file (include.php) on a website that doesn't support PHP (to simulate lack of PHP service). The code either reveals itself as plain text, or you are prompted by your browser if you would like to open this file, or download it. (also tried include.inc.php)
Either way, it was as easy as 1,2,3 to figure out which file was included, and requesting the included file it was peanuts to see vars like:
$username = "mylogin";
$pwd = "mypwd";
$host = "myhost";
[etc]
Although someone would need to hack into the server (which is normally supposed to be the hosting companies worries) and put's his own script there at least he's able to drop tables or do anything with your database.
Simply because that one time PHP failed on your hosting company, he/she was able to figure out your login and passwords.
At the very least, this somewhats troubles me. Is there anything to make this harder or perhaps even impossible?
Is there perhaps something the hosting provider can do to prevent this in events of PHP failures / shutdown etc.
BTW. I'm aware that the most secure enviroment would be a computer that's been turned off. But I'd like to hear about ways to make it at least a bit less easy.
Martin.