PHP Page does not seem to render

From: Date: Thu, 04 Jul 2002 02:59:29 +0000
Subject: PHP Page does not seem to render
Groups: php.windows 
Request: Send a blank email to php-windows+get-14560@lists.php.net to get a copy of this message
I sent this out once before but nobody replied, I could REALLY use some help, as this page needs to be working by 2 pm Monday morning, and I have NO idea what's wrong . THANKS! ::::::::::::::::::::::::::::: ORIGINAL CODE ::::::::::::::::::::::::::::::::::::: <?php error_reporting (E_ALL); /* Allow the script to hang around waiting for connections. */ set_time_limit (0); $telnetclient = "zeth"; $remotehost[0] = "abandonedrealms.net"; $remoteport[0] = "9000"; $remotehost[1] = "cnn.com"; $remoteport[1] = "80"; $remotehost[2] = "freebsd.org"; $remoteport[2] = "80"; $c = count($remotehost); $c2 = count($remoteport); if($c != $c2){ die("You must have both remoteport and remotehost specified for all servers."); } ?> <html> <head> <title>Zeth's server status checker</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> </head> <body bgcolor="#FFFFFF" text="#000000"> <table width="100" border="1" cellspacing="0" cellpadding="0" bordercolor="#000000"> <tr> <td> <table width="291" border="0" cellspacing="0" cellpadding="0"> <tr bgcolor="#00CCFF"> <td><b><font color="#FFFFFF" face="Verdana, Arial, Helvetica, sans-serif" size="2">Server name</font></b></td> <td><b><font color="#FFFFFF" face="Verdana, Arial, Helvetica, sans-serif" size="2">Status</font></b></td> </tr> <?php for ($i = 0; $i < $c; $i++) { $fp = fsockopen("$remotehost[$i]", $remoteport[$i], $errno, $errstr); if (!$fp) { ?> <tr bgcolor="#FFFFFF"> <td><font color="#000000" face="Verdana, Arial, Helvetica, sans-serif" size="1"><?php echo $remotehost[$i].":".$remoteport[$i]; ?></font></td> <td> <div align="center"><font color="#000000" face="Verdana, Arial, Helvetica, sans-serif" size="1">DOWN</font></div> </td> </tr> <?php } else { ?> <tr bgcolor="#FFFFFF"> <td><font color="#000000" face="Verdana, Arial, Helvetica, sans-serif" size="1"><?php echo $remotehost[$i].":".$remoteport[$i]; ?></font></td> <td> <div align="center"><font color="#000000" face="Verdana, Arial, Helvetica, sans-serif" size="1">UP</font></div> </td> </tr> <?php fclose ($fp); } } ?> </table> </td> </tr> </table> </body> </html> _________________________________________ Chris H ICQ#:141167181 Current ICQ status: SMS: (Send an SMS message to my ICQ): +2783142141167181 More ways to contact me: http://wwp.icq.com/ <http://wwp.icq.com/141167181> 141167181 _________________________________________

« previous php.windows (#14560) next »