View previous topic :: View next topic |
Author |
Message |
cjsa -
Joined: 27 Jun 2004 Posts: 12 Location: Halifax, NS
|
Posted: Tue Jun 29, 2004 2:36 am Post subject: Log users & downloads |
|
|
Hello everyone, I was wondering if there is a way I can get php to log what users log onto my server & what files they download. What I'd like to log file to look like would be the following info.
Say at 1:01 PM user JohnDoe logs on & downloads ad-aware.zip file, it would add this line to the log file.
13:01 JohnDoe ad-aware.zip _________________ Thanks in advance,
cjsa |
|
Back to top |
|
 |
TRUSTAbyss -
Joined: 29 Oct 2003 Posts: 3752 Location: USA, GA
|
Posted: Tue Jun 29, 2004 2:54 am Post subject: |
|
|
You would have to create one big script for this to work , I can create
such a script but it would take some time , i won't work with this untill
I get my current script debugged which will be for the new Abyss Beta.
I should have a neat litte script in the
future , check hotscripts.com for a log
script that logs downloads. Good Luck! |
|
Back to top |
|
 |
iNaNimAtE -
Joined: 05 Nov 2003 Posts: 2381 Location: Everywhere you're not.
|
Posted: Tue Jun 29, 2004 2:54 am Post subject: |
|
|
You're aware that Abyss already includes a very comprehensive log file, right? _________________ Bienvenidos! |
|
Back to top |
 |
 |
cjsa -
Joined: 27 Jun 2004 Posts: 12 Location: Halifax, NS
|
Posted: Wed Jun 30, 2004 4:50 pm Post subject: |
|
|
Thank you for your replies. Yes I was aware that abyss does create a log file but it sure is hard to fing information in.
Like in this sample:
24.222.153.220 - - [27/Jun/2004:08:54:58 -0300] "GET /images/ty.jpg HTTP/1.0" 200 7592 "http://www.nsplaza.no-ip.com/software/" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 1.1.4322)"
24.222.153.220 - eric [27/Jun/2004:08:54:57 -0300] "GET /software/ HTTP/1.0" 200 29275 "" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 1.1.4322)"
24.222.153.220 - eric [27/Jun/2004:08:54:58 -0300] "GET /software/mail.swf HTTP/1.0" 200 1778 "" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 1.1.4322)"
24.222.153.220 - - [27/Jun/2004:08:54:58 -0300] "GET /images/readinfo.gif HTTP/1.0" 200 844 "http://www.nsplaza.no-ip.com/software/" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 1.1.4322)"
24.222.153.220 - eric [27/Jun/2004:08:57:49 -0300] "GET /software/apps.php HTTP/1.0" 200 31002 "" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 1.1.4322)"
24.222.153.220 - - [27/Jun/2004:09:00:05 -0300] "GET / HTTP/1.0" 200 6628 "" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 1.1.4322)"
24.222.153.220 - - [27/Jun/2004:09:00:05 -0300] "GET /images/mail.jpg HTTP/1.0" 200 1096 "http://www.nsplaza.no-ip.com/" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 1.1.4322)"
24.222.153.220 - - [27/Jun/2004:09:00:05 -0300] "GET /logon.swf HTTP/1.0" 200 1732 "" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 1.1.4322)"
Especially when it is pages & pages long. I was just wondering if there was a simply way to do it through php.
Thanks again people. _________________ Thanks in advance,
cjsa |
|
Back to top |
|
 |
iNaNimAtE -
Joined: 05 Nov 2003 Posts: 2381 Location: Everywhere you're not.
|
Posted: Wed Jun 30, 2004 7:46 pm Post subject: |
|
|
There are log analyzers such as WebLog Expert that do a good job, and then there are scripts. AWStats is a popular one (although I believe it is written in Perl). Just go to www.hotscripts.com to find one you like (in PHP). _________________ Bienvenidos! |
|
Back to top |
 |
 |
mcwilliams132 -
Joined: 27 Jul 2003 Posts: 167 Location: Oshkosh, WI
|
Posted: Thu Jul 01, 2004 6:23 pm Post subject: |
|
|
The best FREE web analizer that I know of is Funnel Web Analizer...
http://www.funnelwebcentral.com/
It's basically point and click and away you go...
you can thank me later... _________________ ::::::::::::::::::::::::::::::::::::::::::::::::::
:: Jon-Paul LeClair
:: http://mcwilliamsworld.com
:: "Lobster sticks to magnet!" |
|
Back to top |
|
 |
00squeaky -
Joined: 11 May 2004 Posts: 60
|
Posted: Fri Jul 02, 2004 9:09 am Post subject: |
|
|
unless you want to publicly display a users downloads, then this is a pretty pointless topic because of abyss's (what a word!) log file.
but if yoou would want to track downloads publicly,
- get a MYsql database
- make a hidden form for the id of the download
- define a function that could be executed onclick!.
- query the databas within that function.
- should be all.
_________________ Languages mastered:
HTML,GML,C,PHP,MYSQL (not really a language, but wtf) |
|
Back to top |
|
 |
|