IP, date, writing, redirect

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Circle
Forum Newbie
Posts: 23
Joined: Thu Jan 19, 2006 7:11 am

IP, date, writing, redirect

Post 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.
User avatar
waradmin
Forum Contributor
Posts: 240
Joined: Fri Nov 04, 2005 2:57 pm

Post by waradmin »

Using fopen(), fwrite(), date(), and $_SERVER['REMOTE_ADDR'];
Circle
Forum Newbie
Posts: 23
Joined: Thu Jan 19, 2006 7:11 am

Post by Circle »

Just a stupid question but is there any way to give it the dutch timezone?
User avatar
Zoxive
Forum Regular
Posts: 974
Joined: Fri Apr 01, 2005 4:37 pm
Location: Bay City, Michigan

Post by Zoxive »

http://www.php.net is your friend.

Code: Select all

date();
-NSF
chakhar86
Forum Commoner
Posts: 45
Joined: Mon Jun 05, 2006 1:36 am
Contact:

Post 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).
Post Reply