I want add PHP code in HTML page, but I'm getting an error.
This is my HTML page:
CODE
<html>
<head></head>
<body>
[i]PHP code must be here[/i]
</body>
</html>
<head></head>
<body>
[i]PHP code must be here[/i]
</body>
</html>
I want to where it reads "PHP code must be here" this is the code:
CODE
error_reporting(0);
$IP = array(" " => "11.11.111.11:11111",);
while(list($ServerName,$Host)=each($IP)) {
list($IPAddress,$Port)=explode(":",$Host);
echo("".$ServerName);
if($fp=fsockopen($IPAddress,$Port,$ERROR_NO,$ERROR_STR,(float)0.5)) {
echo("<iframe src='http://11.11.111.11/x.php' name='I1' width='185' height='380' frameborder='0' id='I3'></iframe>");
fclose($fp);
}
else {
echo ("IP: <b>11.11.111.11</b><br>Port: <b>11111</b><br>Status: <font color='red'><b>Offline</b></font>");
}
}
I tried to write the <?php CODE ?>, but still bad... So I ask for your help.
Sorry for my bad language
