Tema: fsockopen()
Ver Mensaje Individual
  #1 (permalink)  
Antiguo 18/09/2006, 18:39
Suyta
(Desactivado)
 
Fecha de Ingreso: septiembre-2004
Mensajes: 360
Antigüedad: 19 años, 7 meses
Puntos: 1
fsockopen()

Hola todos
Necesito usar fsockopen entre 2 sitios que administro pero no hay manera.
Estoy testeando así:
Código PHP:
<?php
$fp
=@fsockopen("www.mysite.com"80, &$errno, &$errstr30);
    if(!
$fp) {
        echo 
"Error: $errstr ($errno)<br>\n";
    } else {
        
fputs($fp,"GET / HTTP/1.0\n\n");
        while(!
feof($fp)) {
            echo 
fgets($fp,128);
        }
        
fclose($fp);
    }
?>
y el resultado es un alerta de cPanel:
Código HTML:
There is no website configured at this address.



You are seeing this page because there is nothing configured for the site you have requested. If you think you are seeing this page in error, please contact the site administrator or datacenter responsible for this site.

Alguien podría darme una pista, qué hago, qué significa eso ?... sí hay un sitio configurado en la url requerida.
Muchas gracias !!!