amalosoul Posted August 15, 2006 Share Posted August 15, 2006 Can I find out specific information about an user who opens a php page (like ip address). I need to create a program which doesn't allow multiple registrations from the same computer. I know that $_SERVER stores this kind of information, but I don't know which argument to use. Quote Link to comment https://forums.phpfreaks.com/topic/17610-can-i/ Share on other sites More sharing options...
wildteen88 Posted August 15, 2006 Share Posted August 15, 2006 Use $_SERVER['REMOTE_ADDR'] however keep in mind this variable may not return the users true IP address as it may return the users proxy address if they are behind a proxy. Also most ISPs give customers dynamic IP addresses, which mean their IP address could change automatically when they connect to the internet, connect to a website, change every minutes/hours etc. So using $_SERVER['REMOTE_ADDR'] shouldn't be relied on. Quote Link to comment https://forums.phpfreaks.com/topic/17610-can-i/#findComment-75030 Share on other sites More sharing options...
ScottRiley Posted August 15, 2006 Share Posted August 15, 2006 http://www.zend.com/manual/reserved.variables.phpThere's a list of all the $_SERVER variables, might come in useful. Quote Link to comment https://forums.phpfreaks.com/topic/17610-can-i/#findComment-75039 Share on other sites More sharing options...
amalosoul Posted September 15, 2006 Author Share Posted September 15, 2006 Thank you for the link! It was really useful! Quote Link to comment https://forums.phpfreaks.com/topic/17610-can-i/#findComment-92433 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.