By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,278 Members | 1,342 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,278 IT Pros & Developers. It's quick & easy.

Getting the id of a computer as it hits the server

P: n/a
Hi,

I need to get the id of a computer as it hits the server. I know there
is a function to do this, but I can't find it. Can someone help
please?

Thanks,

Bill
Jul 16 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Bill wrote:
I need to get the id of a computer as it hits the server. I know there
is a function to do this, but I can't find it. Can someone help
please?


I assume that by "id" you mean the IP adress of the machine that
accesses your script. If so, you can find it in the predefined variable
$_SERVER['REMOTE_ADDR']

--
/**
* @author Jochen Buennagel <zang at buennagel dot com>
*/

Jul 16 '05 #2

P: n/a
Jochen Buennagel wrote:
Bill wrote:
I need to get the id of a computer as it hits the server. I know there
is a function to do this, but I can't find it. Can someone help
please?

I assume that by "id" you mean the IP adress of the machine that
accesses your script. If so, you can find it in the predefined variable
$_SERVER['REMOTE_ADDR']


Bah. I really need to learn to type quicker :)

--
MeerKat

Jul 16 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.