Vorrei recuperare l'html d una pagina web attraverso le socket:
perché non riesco ad accedere alla pagina web? Grazie.codice:$sk=fsockopen(www.lenar.it,80,$errnum,$errstr,60); if(!$sk){ exit("Connessione fallita: ".$errnum." ".$errstr) ; }else{ $headers="GET ".$target." ".$protocol.$br ; $headers.="Host: ".$host.$br ; fputs($sk,$headers) ; }