Page 1 of 1
whats the best way to...
Posted: Mon Apr 05, 2004 9:16 am
by bawla
log users and their ips and everything for your site using only php
i couldnt find any scripts of that because i dont know wut they would be called, from your guys experience which way is the best?
Posted: Mon Apr 05, 2004 9:19 am
by twigletmac
You can write the information to a text file, or you could log it in a database.
Other than that we probably need a bit more info as to what you are intending to do and what information you are trying to grab.
Mac
Posted: Mon Apr 05, 2004 9:22 am
by malcolmboston
are you after a whois online script by any chance?
Posted: Mon Apr 05, 2004 9:39 am
by bawla
i've heard of whois online script but never accually used it
but wut im trying to do is, log visitors
so for example it shows
ip,date, time, brower, all that good stuff,
Posted: Mon Apr 05, 2004 9:44 am
by malcolmboston
you can either go for a MySQL solution or a flat file solution
MySQL you just need to use the standard commands
the fwrite and fopen commands is probably the most important command for writing to text files
fopen command
fwrite command
you can also find many of these scripts on:
http://www.hotscripts.com
Posted: Mon Apr 05, 2004 9:56 am
by bawla
i looked on hotscripts but i have no idea wut to look for
Posted: Mon Apr 05, 2004 10:04 am
by jrmontg
Posted: Mon Apr 05, 2004 10:13 am
by bawla
thank you very much
Posted: Mon Apr 05, 2004 10:27 am
by tim
I believe Strattera (sp?) posted his infamous code for the browers, ip, etc etc @ evilwalrus.com
check it out.