I have a file called config.php, which contains a whole load of variables that are used all over the place, like $mysqlHost, $baseHREF etc... I would like it so that if a user finds their way to config.php it either displays a message saying "Well Done! You found config.php! Unfortunely you can't get the usernames and passwords for the admins from it... SUCKER!!!" or forward them to the index...
If I make config.php look like this:
<?php
// All my variables
?>
<p>Well Done! You found config.php! Unfortunely you can't get the usernames and passwords for the admins from it... SUCKER!!!</p>
Will it display that message when I require_once() it in my pages?
Is there another way of doing this that is more secure?
Thanks