<?php
// Write your IP instead of xxx.xxx.xxx.xxx
if(@$_SERVER['REMOTE_ADDR'] == 'xxx.xxx.xxx.xxx'|| @$_SERVER['HTTP_X_FORWARDED_FOR'] == 'xxx.xxx.xxx.xxx' ){
define( 'TESTINGMOD',TRUE);
}else{
define( 'TESTINGMOD',FALSE);
}
if(TESTINGMOD){
error_reporting(E_ALL); ini_set('display_errors', 1);
// Write test code for specific IP address in live site
}else{
error_reporting(0);
}
?>
No comments:
Post a Comment