Skip to content

Instantly share code, notes, and snippets.

@dianastefan
Forked from decebal/remote.php
Last active October 8, 2015 18:08
Show Gist options
  • Save dianastefan/3369249 to your computer and use it in GitHub Desktop.
Save dianastefan/3369249 to your computer and use it in GitHub Desktop.
display errors on dev ip
if($_SERVER['REMOTE_ADDR'] == '85.204.238.130'){
ini_set("display_errors", 'On');
error_reporting(E_ALL ^ E_NOTICE);
}else{
ini_set("display_errors", 'Off');
}
{if $smarty.server.REMOTE_ADDR == '85.204.238.130'}
{$page|@vd}
{/if}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment