Created
May 2, 2012 13:39
-
-
Save markwearing/2576567 to your computer and use it in GitHub Desktop.
Display a servers configuration only from your ip address.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| if ($_SERVER[‘REMOTE_ADDR’] == “28.57.742.18”): | |
| phpinfo (); die(); | |
| endif; ?> |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What this does is display the configuration settings of the hosting server - but only from the ip address where you are (so if you use this you will need to put your ip address rather than this dummy one).