infos-visiteur.php

http://radeff.red/info/php/infos-visiteur.php

<?
include("header.inc.php"); 
# function web_visitor(){
 $env= array('http_referer', 'remote_addr', 'http_accept_language', 'http_host',
  'http_user_agent', 'script_filename', 'server_addr',
  'server_name', 'server_signature', 'server_software',
  'request_method', 'query_string', 'request_uri', 
  'script_name');
 
  $retour =array();
$txt="<table border=1 cellpadding=10>";
  foreach ($env as $e){
  #$retour[$e] = getenv($e);
  $txt .= "<tr><td>$e</td><td>" .getenv($e) ."</td></tr>\n";
  }
  #return $retour;
#}
#echo web_visitor();
$txt.="</table>";
echo $txt;
?>
  • info/infos-visiteur.txt
  • Dernière modification: 2018/07/18 09:45
  • par radeff