Visualizzazione dei risultati da 1 a 3 su 3
  1. #1

    recuperare html tramite socket

    Vorrei recuperare l'html d una pagina web attraverso le socket:

    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) ;
    }
    perché non riesco ad accedere alla pagina web? Grazie.
    GdR Online - http://lenar.it/
    Yesterday is history. Tomorrow is mystery.
    Today is a gift. That's why it's called the present

  2. #2
    Moderatore di Sicurezza informatica e virus L'avatar di Habanero
    Registrato dal
    Jun 2001
    Messaggi
    9,782
    Leggi il REGOLAMENTO!

    E' molto complicato, un mucchio di input e output, una quantità di informazioni, un mucchio di elementi da considerare, ho una quantità di elementi da tener presente...
    Drugo

  3. #3
    nell'altra il problema era il server che non lasciava accedere all'esterno, ora il problema è nello script.

    :rollo:
    GdR Online - http://lenar.it/
    Yesterday is history. Tomorrow is mystery.
    Today is a gift. That's why it's called the present

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.