Log users & downloads

 
Post new topic   Reply to topic    Aprelium Forum Index -> PHP
View previous topic :: View next topic  
Author Message
cjsa
-


Joined: 27 Jun 2004
Posts: 12
Location: Halifax, NS

PostPosted: Tue Jun 29, 2004 2:36 am    Post subject: Log users & downloads Reply with quote

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 View user's profile Send private message
TRUSTAbyss
-


Joined: 29 Oct 2003
Posts: 3752
Location: USA, GA

PostPosted: Tue Jun 29, 2004 2:54 am    Post subject: Reply with quote

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 View user's profile Send private message Visit poster's website
iNaNimAtE
-


Joined: 05 Nov 2003
Posts: 2381
Location: Everywhere you're not.

PostPosted: Tue Jun 29, 2004 2:54 am    Post subject: Reply with quote

You're aware that Abyss already includes a very comprehensive log file, right?
_________________
Bienvenidos!
Back to top View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger ICQ Number
cjsa
-


Joined: 27 Jun 2004
Posts: 12
Location: Halifax, NS

PostPosted: Wed Jun 30, 2004 4:50 pm    Post subject: Reply with quote

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 View user's profile Send private message
iNaNimAtE
-


Joined: 05 Nov 2003
Posts: 2381
Location: Everywhere you're not.

PostPosted: Wed Jun 30, 2004 7:46 pm    Post subject: Reply with quote

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 View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger ICQ Number
mcwilliams132
-


Joined: 27 Jul 2003
Posts: 167
Location: Oshkosh, WI

PostPosted: Thu Jul 01, 2004 6:23 pm    Post subject: Reply with quote

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 View user's profile Send private message Visit poster's website
00squeaky
-


Joined: 11 May 2004
Posts: 60

PostPosted: Fri Jul 02, 2004 9:09 am    Post subject: Reply with quote

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,

  1. get a MYsql database
  2. make a hidden form for the id of the download
  3. define a function that could be executed onclick!.
  4. query the databas within that function.
  5. should be all.

_________________
Languages mastered:
HTML,GML,C,PHP,MYSQL (not really a language, but wtf)
Back to top View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> PHP All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB phpBB Group