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, &$errstr, 30);
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);
}
?>
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 !!!