[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: apache2 y localizatdor d'ip



2006/2/2, Jaume Sabater <jaume@argus.net>:
> El Dijous 02 Febrer 2006 15:11, Pau Tallada Crespí­ va escriure:
> > No, hi ha una altra variable, ara mateix no m'enrecordo, que et dona la
> > ip del proxy. Ho sé perquè jo tenc telefònica i REMOTE_ADDR em torna la
> > ip real, no la del proxy transparent.
>
> Prova amb:
>
> <? echo $_SERVER["HTTP_X_FORWARDED_FOR"]; ?>
> --
> :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: ::
> :: Jaume Sabater
> :: administrador de sistemes
> :: jaume@argus.net
>
>   argus.net TECNOLOGIA CREATIVA
>   "creant en la web des de 1995"
>
>   www.argus.net | tel: 932 92 41 00 | fax: 932 92 42 25 | info@argus.net
>   Avgda. Marquès de Comillas, 13 (Poble Espanyol) | 08038 | Barcelona
>
>
> --
> To UNSUBSCRIBE, email to debian-user-catalan-REQUEST@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
>
>
aqui ho tenim pero validat
<?php
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>
<html xmlns="http://www.w3.org/1999/xhtml"; xml:lang="es" lang="es">
<head>
        <meta http-equiv="Content-Type" content="text/html;
charset=ISO-8859-15" />
        <title></title>
</head>
<body>

<?php
       echo('<center><p>Tu actual IP és:
<b>'.$_SERVER["REMOTE_ADDR"].'</b></p></center>');

?>
</body>
</html>



Reply to: