Port redirect

can anyone tell me why this does not work

<?php
$host = '69.206.75.152';
if($socket =@ fsockopen($host, 8088, $errno, $errstr, 30)) {
 $port= ":8088";
fclose($socket);
} else {
	$port= ":3333" ;
$LINK = $host,$port;

}

?>
<div>
<iframe name='main' src="http://<?php echo $link;"?>  height='100%' width='100%' frameborder='0' scrolling='no'> </iframe>"

Does this look right?

You also have a quote problem on the last line.

If you format your code the problem is obvious.

      <div>
      <iframe
      name='main'
      src="http://<?php echo $link;"?>
      height='100%'
      width='100%'
      frameborder='0'
      scrolling='no'
      >
      </iframe>
      "

In the future, use the code tags. I did it for you this time.

1 Like
Sponsor our Newsletter | Privacy Policy | Terms of Service