RE: [PHP-ES] Como obtengo el IP de una maquina? asi como si usara el $HTTP_USER_REFERER para ver su browser
| From: | Omar Rosado | Date: | Fri, 18 Aug 2000 21:40:10 +0000 |
| Subject: | RE: [PHP-ES] Como obtengo el IP de una maquina? asi como si usara el $HTTP_USER_REFERER para ver su browser | ||
| References: | 1 | Groups: | php.general.es |
| Request: | Send a blank email to general-es+get-1075@lists.php.net to get a copy of this message | ||
/*
* When you use REMOTE_ADDR for getting the IP of the current user,
* sometimes you get the IP of the ISP Cache server.
* When this happens, the HTTP_X_FORWARDED_FOR is also set, it
* contains the IP of the user.
*/
function getRemoteIPAddress()
{
if (getenv(HTTP_X_FORWARDED_FOR))
{
$ip=getenv(HTTP_X_FORWARDED_FOR);
}
else
{
$ip=getenv(REMOTE_ADDR);
}
return($ip);
}
-----Original Message-----
From: Luis Tena [mailto:tena@avantel.net]
Sent: Thursday, August 17, 2000 6:31 PM
To: lista@phpes.com
Subject: [PHP-ES] Como obtengo el IP de una maquina? asi como si usara
el $HTTP_USER_REFERER para ver su browser
Gracias de antemano
----- Original Message -----
From: "Matías Diez" <mdiez@fibertel.com.ar>
To: <lista@phpes.com>
Sent: Thursday, August 17, 2000 4:02 PM
Subject: [PHP-ES] MAIL Function errror
> Hola:
>
> Estoy usando la funcion mail e escrito la siguiente linea:
> mail("mdiez@fibertel.com,ar", "Titulo", "Texto");
>
> Pero siempre recibo el error:
>
> Warning: Unknown error in e:\Inetpub\wwwroot\test.php on line 3
>
> Ahora empleo para trabajar el PWS con PHP4 y un servidor
> de Mail (SMTP) free para windos98.
> He probado enviar un email con un Outlook empleando el server
> de SMTP.
> Y funciono existosamente......por otro lado la configuracion del
> php.ini
> [mail function]
> SMTP = localhost ;for win32 only
> sendmail_from = root@test.com ;for win32 only
> ;sendmail_path = ;for unix only, may supply arguments as well
(default
> is sendmail -t)
>
> Probe cambiar el localhost por el IP y por el Lookback y tanpoco tuve
> exito.
>
> Alguna idea.....
> Gracias
> Matías
>
>
>
> ---------------------------------------------------------------------
> Para dar de baja la suscripción, mande un mensaje a:
> lista-unsubscribe@phpes.com
>
>
---------------------------------------------------------------------
Para dar de baja la suscripción, mande un mensaje a:
lista-unsubscribe@phpes.com