![]() | |||||||
Getting current user's IP address While looking in the PHP predefined variables i found an intersting one: $_ENV["REMOTE_ADDR"]. what this does is it gives the current IP of the person viewing your site. This is quite good if you are making a poll for a intranet where each user has their own username. Have a look at this and tell me what you think. PHP Code: I hope somebody finds it helpful. ASGSOFT |
If you search for it on google you would easily find it, but thnx anyway. |
Thanks for the information...I was looking for such a info to be used with a Quiz PHP Script! |
I personally uses JS for that :D But I guess PHP overcomes it in simplicity |
You can also display the users IP to them. An example of this can be found at www.cat5.us |
Thanks may come in handy.. |
Slightly different method, same info: Code:
Similar examples in ASP and C++ at www.scanmybrowser.com - look for the links in the left navbar. |
| All times are GMT -7. The time now is 02:24 PM. |
Powered by: vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 2.4.0