Re: Need help
| From: | Thorsten Körner | Date: | Wed, 03 Dec 2003 13:33:43 +0000 |
| Subject: | Re: Need help | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-171672@lists.php.net to get a copy of this message | ||
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi
Am Mittwoch, 3. Dezember 2003 14:24 schrieb MBA:
> > How could I use this php code,
> >
> >
> > <?php print("$REMOTE_ADDR"); ?>
> >
> > in order to show the ip in a web page?
You should use:
<?php @print($_SERVER['REMOTE_ADDR']); ?>
for PHP 4.1 and higher.
Please use a more descriptive subject for your questions
CU
Thorsten
- --
Thorsten Körner | http://www.123tkShop.org
openSource e-Commerce | http://www.123tk.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)
iD8DBQE/zeY/s5R35vLkl/cRAk5+AKCp0qwutyAemO1ePf0DyrahKwEAXgCgoM4u
4q909NO3uG1fgPTopDYHySI=
=WWdT
-----END PGP SIGNATURE-----