Page 1 of 1

Student in Extreme Need

Posted: Sat Nov 29, 2003 6:35 am
by hendy
Im trying to use PHP to log a users IP address and timestamp, then when that visitor returns to the webpage, i dont want the counter to count up, i can get a the page to display the ip address and time stamp, i need to put this in a text file so everytime someone views the webpage, it will look up a list of previous IP Addresses and if that IP address is there, the counter will remaint he same.. Please, any help would be greatly appreciated!!!!!

Posted: Sat Nov 29, 2003 7:11 am
by mchaggis

Posted: Sat Nov 29, 2003 7:17 am
by hendy
cheers, its a help but im only new to php, thanks

Posted: Sat Nov 29, 2003 9:11 am
by m3mn0n
I would start off with a good [google]php counter tutorial[/google], and then expand the script to include IP monitoring by getting a good [google]IP log tutorial in php[/google].

If you want to cheat a bit there is prebuilt scripts for almost everything at http://www.hotscripts.com/PHP

When I was learning I didn't just copy the source and use it, rather study what they used to achieve the result and then try to emulate it on my own.

Posted: Sun Nov 30, 2003 12:48 pm
by hendy
thanks its a real help, really appreciate it