Student in Extreme Need

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
hendy
Forum Newbie
Posts: 24
Joined: Sat Nov 29, 2003 6:35 am
Location: UK

Student in Extreme Need

Post 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!!!!!
User avatar
mchaggis
Forum Contributor
Posts: 150
Joined: Mon Mar 24, 2003 10:31 am
Location: UK

Post by mchaggis »

Last edited by mchaggis on Sat Nov 29, 2003 9:36 am, edited 1 time in total.
hendy
Forum Newbie
Posts: 24
Joined: Sat Nov 29, 2003 6:35 am
Location: UK

Post by hendy »

cheers, its a help but im only new to php, thanks
User avatar
m3mn0n
PHP Evangelist
Posts: 3548
Joined: Tue Aug 13, 2002 3:35 pm
Location: Calgary, Canada

Post 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.
hendy
Forum Newbie
Posts: 24
Joined: Sat Nov 29, 2003 6:35 am
Location: UK

Post by hendy »

thanks its a real help, really appreciate it
Post Reply