Skip to content

Instantly share code, notes, and snippets.

@ecoreng
Last active December 30, 2015 23:39
Show Gist options
  • Save ecoreng/7901911 to your computer and use it in GitHub Desktop.
Save ecoreng/7901911 to your computer and use it in GitHub Desktop.
If visitor is my ip, then enable error reporting, and do other stuff
<?php
if ($_SERVER['REMOTE_ADDR'] == 'My.IP.address.!') {
error_reporting(E_ALL);
ini_set("display_errors", 1);
// do stuff
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment