I am working on a new webpage. It has some code to see if my server is up. The result is in a little iFrame. When i get an error it fills up the iFrame. My question: Is there a way to stop it from showing errors?
Thanks
Code ATM:(VERRY Messy)
<html> <?php if(!$u){ // Realm Status $h = "epswow.servegame.com"; //server address $p = "3724"; //default realmd port $s = fsockopen($h, $p, $errno, $errstr, 2); if(!$s){ echo "<font color=darkblue><strong>server is:</font></strong>"." <font color=red><strong>Down!</strong></font>"; } else { echo " <font color=darkblue><strong>server is:</font></strong>" ." <font color=darkgreen><strong>Online!</strong></font>"; } } else { // Sql protection if (!get_magic_quotes_gpc()) { $u = addslashes($_POST['user']); $p = addslashes($_POST['pass']); $e = $_POST['email']; } else { $u = $_POST['user']; $P = $_POST['pass']; $e = $_POST['email']; } // hehehe @$link = mysql_connect("$db_host", "$db_u", "$db_p"); if (!$link) { die('Could not connect: ' . mysql_error()); } mysql_select_db('realmd'); $q = "insert into account ( username,password,gmlevel,sessionkey,joindate,banned,last_ip,failed_logins,locked,last_login,online) values ('$u','$p','0','',NOW(),'0','127.0.0.1','0','0','2000-01-01 00:00:00','0')"; } ?> </html>