PC Playground  

Go Back   PC Playground > The Core > Scripting/Programming
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 01-22-2003, 02:36 AM
Member
 
Join Date: Jan 2003
Location: USA
Posts: 41
Send a message via AIM to airj1012
Default Web Tracking

Hey I need some help. Does anybody have some good web tracking scripts, that tell you who visits your site, when, with what OS, and all that good stuff. Please contact me if you have a script I can borrow or know where I can find one. Thanks.

http://www.stjohnseyc.com
Reply With Quote
  #2 (permalink)  
Old 01-22-2003, 03:24 PM
 
Posts: n/a
Default

heres a simple script you can include on all your pages...

you will need to create the file "hits" (no extension)
and create the file "hitlog.log"

then just include this code wherever you want to show the number of visitors...
Code:
<?php $hits = file('/hits'); $hits = $hits[0] + 1; $fa = fopen ("/hits", "w"); $fb = fopen ("/hitlog.log", "a"); $ip = $REMOTE_ADDR; $info=$HTTP_USER_AGENT; $date=date("F j, Y, g:i a"); $newline="\n"; fputs($fb,$newline); fputs($fb,"WEBSITE ACCESSED BY: $ip on $date . Settings: $info"); fputs($fb,$newline); fputs($fa, $hits); echo "$hits Visitors"; ?>
Reply With Quote
  #3 (permalink)  
Old 01-22-2003, 03:46 PM
 
Posts: n/a
Default thats only hits

Thats only the visitors, how do you do the other stuff, like hits per day, all that good stuff, and their screen resolutions, browsers, and that stuff. I know somebody have scripts for it, I just need to find a good one, if somebody can help me.
Reply With Quote
  #4 (permalink)  
Old 01-22-2003, 11:14 PM
 
Posts: n/a
Default

i just made that really quick but...if you want visitors perday, it would probably be esiest to use a database of some sort.

that one shows you the browser....for screen resolution, i think you need javascript.
Reply With Quote
  #5 (permalink)  
Old 01-22-2003, 11:17 PM
Member
 
Join Date: Jan 2003
Location: USA
Posts: 41
Send a message via AIM to airj1012
Default thanks

Well thanks, I am trying to look for something bigger, and something that tells me more, but thanks.
Reply With Quote
  #6 (permalink)  
Old 01-24-2003, 12:34 PM
Member
 
Join Date: Jan 2003
Posts: 33
Default

go to my website at http://flare.pcplayground.com , look at the x-stat counter thingie and click on it, look at the left, are those the features u want?

[Link edited by Tommy... it works now]
Reply With Quote
  #7 (permalink)  
Old 01-24-2003, 02:54 PM
Member
 
Join Date: Jan 2003
Location: USA
Posts: 41
Send a message via AIM to airj1012
Default

ya it looks aight, do you have to have that ad on your page though? the xstat one?
Reply With Quote
  #8 (permalink)  
Old 01-29-2003, 12:33 PM
Member
 
Join Date: Jan 2003
Location: NORWAY
Posts: 42
Send a message via ICQ to Jigzaw Send a message via AIM to Jigzaw Send a message via MSN to Jigzaw Send a message via Yahoo to Jigzaw
Default

I HATE POUPS! :evil:
Reply With Quote
  #9 (permalink)  
Old 01-29-2003, 03:16 PM
Senior Member
 
Join Date: Jan 2003
Location: Florida, USA
Posts: 229
Send a message via AIM to Pendragon
Default

yea man get rid of the pop-ups. :idea:
Reply With Quote
  #10 (permalink)  
Old 01-29-2003, 11:16 PM
Senior Member
 
Join Date: Jan 2003
Location: Southern California
Posts: 142
Send a message via AIM to xero Send a message via MSN to xero Send a message via Yahoo to xero
Default

http://www.hotscripts.com/PHP/Scripts_a ... /Counters/

or if you dont wanna go thru the hassle config'ing your own counter, you can always go to somewhere like bravenet.com
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 01:37 PM.


Powered by vBulletin Version 3.6.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.