Cita:
Iniciado por MarioNunes
Prueba esto y luego me cuentas:
Código PHP:
$fichero = "elwhois.txt";
system("whois www.dominio.com > ".$_SERVER["DOCUMENT_ROOT"].$fichero);
$fp=@fopen($fichero,"r");
$txt= fread($fp, filesize($DOCUMENT_ROOT.$fichero));
fclose($fp);
Dudo que en un hosting compartido puedas usar la función
system de PHP