Create and manage crud operation log data PHP <?phpfunction crud_log($action = ”,$message = ”,$array_data = array()){ global $handle_crud_log; date_default_timezone_set(“Australia/Sydney”); //Ex. set australia/sydney timezone $crud_log_dir […]
PHP Run Script For Specific IP Address
<?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 […]