Page 1 of 1
IP, date, writing, redirect
Posted: Sun Oct 08, 2006 4:11 pm
by Circle
I need a file that searches some ones IP and the writes it and the date and time it was collected to a file called for example index.txt and the redirects the user to the second page.
Does any one know the best way to do this?
Thanks in advance.
Posted: Sun Oct 08, 2006 4:13 pm
by waradmin
Using fopen(), fwrite(), date(), and $_SERVER['REMOTE_ADDR'];
Posted: Sun Oct 08, 2006 4:30 pm
by Circle
Just a stupid question but is there any way to give it the dutch timezone?
Posted: Sun Oct 08, 2006 5:13 pm
by Zoxive
http://www.php.net is your friend.
-NSF
Posted: Mon Oct 09, 2006 2:49 am
by chakhar86
waradmin wrote:Using fopen(), fwrite(), date(), and $_SERVER['REMOTE_ADDR'];
and don't forget to add header("Location : absolute_path_of_second_page"); <= this is the easiest way to do the redirection as long as I know(easier than meta redirection).