Pavel_htm_lover
12-16-2005, 02:09 AM
There is no dumb questions? If so how do u log someone's ip as Enter your site?
|
||||
Loggin IpPavel_htm_lover 12-16-2005, 02:09 AM There is no dumb questions? If so how do u log someone's ip as Enter your site? Jonathon 12-16-2005, 02:30 AM Not sure if there are server ways of doing this with things such as apache or windows (whatever you use) but I know that straight HTML can't do it. You have to use a SSL (Server Side Language) to track the IP. Al_90 12-16-2005, 02:43 AM use php/mysql mysql table: ---------------------- CREATE TABLE `ip` ( `id` int(5) NOT NULL auto_increment, `ip` varchar(50) NOT NULL default '', PRIMARY KEY (`id`) ) TYPE=MyISAM AUTO_INCREMENT=1 ; --------------------- php code on page: --------------------- <?php $ip = $_SERVER['REMOTE_ADDR']; $sql = "INSERT INTO `ip` ( `id` , `ip` ) VALUES ( '', '$ip')"; $query = mysql_query($sql); print "Logged: $ip"; ?> Pavel_htm_lover 12-16-2005, 03:01 AM Sweet!!! thx alot :thumbsup: |
| |||
EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum