Visualizzazione dei risultati da 1 a 7 su 7

Discussione: Nome del Computer

  1. #1
    Utente di HTML.it L'avatar di JoeP
    Registrato dal
    May 2004
    Messaggi
    558

    Nome del Computer

    è possibile, tramite l'indrizzo IP, risalire al nome del computer che sta navigando in un sito?

  2. #2
    Moderatore di Server Apache L'avatar di marketto
    Registrato dal
    Sep 2001
    Messaggi
    5,858
    echo $_ENV['COMPUTERNAME'];
    think simple think ringo

  3. #3
    Utente bannato
    Registrato dal
    Apr 2004
    Messaggi
    1,392
    ed è possibile con php ricevere files da un computer conoscendo l'ip???

  4. #4
    Utente di HTML.it L'avatar di JoeP
    Registrato dal
    May 2004
    Messaggi
    558

    Re: Nome del Computer

    echo $_ENV['COMPUTERNAME'];
    Non mi è chiaro come si fa ad usare il codice che mi hai postato?

  5. #5
    Moderatore di Server Apache L'avatar di marketto
    Registrato dal
    Sep 2001
    Messaggi
    5,858

    Re: Re: Nome del Computer

    Originariamente inviato da JoeP
    Non mi è chiaro come si fa ad usare il codice che mi hai postato?

    l'array superglobale $_ENV contiene diverse informazioni, fra cui il nome del computer.
    facendo echo $_ENV['COMPUTERNAME'] stampi a video questo tipo di informazione.
    think simple think ringo

  6. #6
    Utente di HTML.it L'avatar di JoeP
    Registrato dal
    May 2004
    Messaggi
    558
    Non mi funziona.
    Ho provato a inserire la riga di codice in un file sul mio server web ma non mi stampa nulla...

  7. #7
    Moderatore di Server Apache L'avatar di marketto
    Registrato dal
    Sep 2001
    Messaggi
    5,858
    in questa pagina http://it.php.net/reserved.variables trovi una spiegazione dettagliata su come viene popolato l'array $_ENV.


    "
    Environment variables: $_ENV

    Note: Introduced in 4.1.0. In earlier versions, use $HTTP_ENV_VARS.

    These variables are imported into PHP's global namespace from the environment under which the PHP parser is running. Many are provided by the shell under which PHP is running and different systems are likely running different kinds of shells, a definitive list is impossible. Please see your shell's documentation for a list of defined environment variables.

    Other environment variables include the CGI variables, placed there regardless of whether PHP is running as a server module or CGI processor.
    "
    think simple think ringo

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.