Skip to content

Instantly share code, notes, and snippets.

@wesolowski
Last active June 16, 2017 08:27
Show Gist options
  • Save wesolowski/ab2e0cd6f35ec20abbdc0ac161fd7dfe to your computer and use it in GitHub Desktop.
Save wesolowski/ab2e0cd6f35ec20abbdc0ac161fd7dfe to your computer and use it in GitHub Desktop.
Debug
<?php
$ip = (isset($_SERVER['HTTP_X_FORWARDED_FOR'])) ? $_SERVER['HTTP_X_FORWARDED_FOR'] : $_SERVER['REMOTE_ADDR'];
if($ip === '###IP###') {
dump(__FUNCTION__ .' / '. __FILE__ .' / '. __LINE__);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment