è possibile, tramite l'indrizzo IP, risalire al nome del computer che sta navigando in un sito?
è possibile, tramite l'indrizzo IP, risalire al nome del computer che sta navigando in un sito?
echo $_ENV['COMPUTERNAME'];
think simple think ringo
ed è possibile con php ricevere files da un computer conoscendo l'ip???
Non mi è chiaro come si fa ad usare il codice che mi hai postato?echo $_ENV['COMPUTERNAME'];
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
Non mi funziona.
Ho provato a inserire la riga di codice in un file sul mio server web ma non mi stampa nulla...
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