$hostname ='localhost'; $port = '3306'; $usernam = 'ndc_db'; //ndc_db $pass = 'm7Q6cs$7'; //ndc_db2214$! $db = 'ndc_db'; $conn = mysql_connect("$hostname:$port", "$usernam", "$pass") or die("Invalid server or user."); mysql_select_db("$db", $conn); putenv("TZ=Asia/Tehran"); mysql_query("SET CHARACTER SET utf8;"); //$ip=@$REMOTE_ADDR; $ip=$_SERVER['REMOTE_ADDR']; //IP address if the register_global is off ?>
'.print_r($_SESSION).'
'; ?>