gazalec Posted April 10, 2007 Share Posted April 10, 2007 hi i was wondering if it was possible to find someone's IP address then save it to a file like a cookie i suppose but on the server machine instead, where as a cookie is saved to the user's machine, it just really so i can check which IP addresses are viewing the web site and to try block any that shouldn't be there, i was also wondering if it is possible to save a session variable to a file, because when customers login they are assign a session id variable, so that it takes that id searchs the database for their details and shows only their info ?? Thanks in advance Link to comment https://forums.phpfreaks.com/topic/46463-solved-ip-tracking-with-php/ Share on other sites More sharing options...
ballhogjoni Posted April 10, 2007 Share Posted April 10, 2007 $ip=getenv("REMOTE_ADDR"); will get your ip and then just save it to your db. Link to comment https://forums.phpfreaks.com/topic/46463-solved-ip-tracking-with-php/#findComment-226020 Share on other sites More sharing options...
gazalec Posted April 10, 2007 Author Share Posted April 10, 2007 ok thanks Link to comment https://forums.phpfreaks.com/topic/46463-solved-ip-tracking-with-php/#findComment-226024 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.