Código PHP:
<?php
include 'config.php';
$conexion = @fsockopen("$ip", "$portp", &$errno, &$errstr, 1);
if($conexion)
{
echo '<iframe marginwidth="0" marginheight="0" scrolling="no" frameborder=0 src="http://$ip/opcion.php" width="725" height="150" AllowTransparency></iframe>';
}
else
{
echo '<p style="margin-top: 0; margin-bottom: 0" align="center"></p> <p align="center">
<font color="#C0C0C0">Esta cerrado el servidor</font></p>';
}
?>
asi tanpoko da http://<?php $ip ?>/opcion.php
Espero su ayuda ..