🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: es.comp.os.linux.programacion
Article #8772

Re: obtecion de ip con php

#8772
From: Jose A
Date: Tue, 15 Oct 2002 12:39
20 lines
1495 bytes
Hola

In article <jl0foa.k24.ln@www.mardot.com>, Marcos Dobarro Otero wrote:
>
> Y me digo yo no es m�s facil algo como:
><?
> $IP = $REMOTE_ADDR;
> echo "La IP es $IP";
> ?>
> 
> Desde luego es mucho m�s claro. :-))

Si, si usas php sobre apache, pero si en alg�n momento tienes que usar php
en windows con iss, probablemente esa variable no te funcione, pues es una
variable predefinida del servidor apache, y el iss o otros servidores web
pueden no definirla.

Con lo que cogiendo la variable del entorno es mucho m�s claro ;)

saludos.
Technical Details
Message-ID: <slrnaqo34a.bqj.MAQUI000@213.60.228.203>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!kibo.news.demon.net!demon!lnewspeer01.lnd.ops.eu.uu.net!emea.uu.net!cesio.mundo-r.com!localhost.localdomain!nobody
References: <ao96q9$l57$1@reader2.wnet> <slrnaqg9fd.20q.MAQUI000@213.60.228.203> <jl0foa.k24.ln@www.mardot.com>

Show Full Headers
Complete Article Headers
X-Google-Language: SPANISH,ASCII
X-Google-Thread: f86c8,1b5c2d859e57cf8d
X-Google-Attributes: gidf86c8,public
X-Google-ArrivalTime: 2002-10-15 06:00:50 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!kibo.news.demon.net!demon!lnewspeer01.lnd.ops.eu.uu.net!emea.uu.net!cesio.mundo-r.com!localhost.localdomain!nobody
From: Jose A <MAQUI000@NOSPAM.mundo-r.com>
Newsgroups: es.comp.os.linux.programacion
Subject: Re: obtecion de ip con php
Date: Tue, 15 Oct 2002 14:39:39 +0200
Organization: Another Netscape Collabra Server User
Lines: 20
Message-ID: <slrnaqo34a.bqj.MAQUI000@213.60.228.203>
References: <ao96q9$l57$1@reader2.wnet> <slrnaqg9fd.20q.MAQUI000@213.60.228.203> <jl0foa.k24.ln@www.mardot.com>
NNTP-Posting-Host: 213.60.228.203
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
User-Agent: slrn/0.9.7.4 (Linux)