Beginner Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsOtherBeginner Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old August 24th, 2003, 09:38 PM
Codyg Codyg is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Location: MA
Posts: 25 Codyg User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 32 sec
Reputation Power: 0
Send a message via AIM to Codyg Send a message via Yahoo to Codyg
Tracking visitors

Hi. I may have already answered my own question by searching but I am looking for a formal answer. If I want to see who has visited my site and how often they revisited, is that done with cookies? Perl, ASP? Is there a simple client side avenue to this request, maybe a jave sign in tracking system?

Reply With Quote
  #2  
Old August 24th, 2003, 11:40 PM
drgroove's Avatar
drgroove drgroove is offline
pushing envelopes, not pencils
Dev Shed God 2nd Plane (6000 - 6499 posts)
 
Join Date: Feb 2002
Posts: 6,225 drgroove User rank is First Lieutenant (10000 - 20000 Reputation Level)drgroove User rank is First Lieutenant (10000 - 20000 Reputation Level)drgroove User rank is First Lieutenant (10000 - 20000 Reputation Level)drgroove User rank is First Lieutenant (10000 - 20000 Reputation Level)drgroove User rank is First Lieutenant (10000 - 20000 Reputation Level)drgroove User rank is First Lieutenant (10000 - 20000 Reputation Level)drgroove User rank is First Lieutenant (10000 - 20000 Reputation Level)drgroove User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 1 Day 4 h 44 m 44 sec
Reputation Power: 174
You can simply check the server's log file with an analysis tool such as webalizer to see how many visitors have seen your site.
__________________
Give a person code, and they'll hack for a day; Teach them how to code, and they'll hack forever.
Analyze twice; hack once.
The world's first existential ITIL question: If a change is released into production without a ticket to track it,
was it actually released?


About DrGroove: ITIL-Certified IT Process Engineer - Enterprise Application Architect -
Freelance IT Journalist - Devshed Moderator - Funk Bassist Extraordinaire


Reply With Quote
  #3  
Old August 25th, 2003, 03:33 AM
computer's Avatar
computer computer is offline
echo $usertitle['computer'];
Dev Shed God 4th Plane (6500 - 6999 posts)
 
Join Date: Jan 2003
Location: UK
Posts: 6,675 computer User rank is Captain (20000 - 30000 Reputation Level)computer User rank is Captain (20000 - 30000 Reputation Level)computer User rank is Captain (20000 - 30000 Reputation Level)computer User rank is Captain (20000 - 30000 Reputation Level)computer User rank is Captain (20000 - 30000 Reputation Level)computer User rank is Captain (20000 - 30000 Reputation Level)computer User rank is Captain (20000 - 30000 Reputation Level)computer User rank is Captain (20000 - 30000 Reputation Level)computer User rank is Captain (20000 - 30000 Reputation Level) 
Time spent in forums: 4 Weeks 9 h 12 m 10 sec
Reputation Power: 219
Send a message via ICQ to computer
Hi,

Here is a simple example using php and mysql:

track.php
PHP Code:
<?php
mysql_connect
("localhost","username","password");
mysql_select_db("sitedb");

$pageid $_SERVER['PHP_SELF'];
$ip $_SERVER['REMOTE_ADDR'];
$timestamp date("r");
mysql_query("INSERT INTO track VALUES('','$pageid','$ip','$timestamp')") or die(mysql_error());
?>


viewtracks.php
PHP Code:
<?php
mysql_connect
("localhost","username","password");
mysql_select_db("sitedb");

$total mysql_query("SELECT * FROM track");
$hits mysql_num_rows($total);
echo 
"Total Hits: "$hits "<br /><br />";
while (
$result mysql_fetch_array($total)) {
 echo 
$result['timestamp'] . " - " $result['ip'] . " - " $result['pageid'] . "<br />";
}
?>


Hope that makes sense and is useful to you...
__________________

Reply With Quote
  #4  
Old August 25th, 2003, 08:00 AM
Codyg Codyg is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Location: MA
Posts: 25 Codyg User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 32 sec
Reputation Power: 0
Send a message via AIM to Codyg Send a message via Yahoo to Codyg
Thanks for your replies. I am using my ISP's server and don't have access to their server. I don't know enough about it but isn't php server side not client side? I am trying to get more information on php but so far I'm coming up with......

'Also, to develop and test locally, you need to have the PHP-engine installed. The engine can be downloaded at www.php.net.'

To actually test your scripts in a webenvironment, you need to install a webserver, too.

I don't have the resources or need for a server so am I wrong thinking that I can't do this from home?

Reply With Quote
  #5  
Old August 25th, 2003, 09:03 AM
karsh44's Avatar
karsh44 karsh44 is offline
Just another guy
Dev Shed Frequenter (2500 - 2999 posts)
 
Join Date: Jun 2003
Location: Wisconsin
Posts: 2,915 karsh44 User rank is Second Lieutenant (5000 - 10000 Reputation Level)karsh44 User rank is Second Lieutenant (5000 - 10000 Reputation Level)karsh44 User rank is Second Lieutenant (5000 - 10000 Reputation Level)karsh44 User rank is Second Lieutenant (5000 - 10000 Reputation Level)karsh44 User rank is Second Lieutenant (5000 - 10000 Reputation Level)karsh44 User rank is Second Lieutenant (5000 - 10000 Reputation Level)karsh44 User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 1 Week 6 Days 13 h 13 m 21 sec
Reputation Power: 76
If your ISP supports php, you don't need to have php installed locally. You can just test your scripts on the actual server. You are correct that php is server side, not client side.

When you say you don't have the resources for a server- you realize that this doesn't refer to a dedicated computer box as a server? You can install apache on your own PC, and just use it to server pages on your computer, so that you can test your php scripts without uploading them to the actual ISP server. This isn't particularly resource heavy, and you could just activate it for testing. Just a thought.
HTH

Reply With Quote
  #6  
Old August 25th, 2003, 09:56 AM
Codyg Codyg is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Location: MA
Posts: 25 Codyg User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 32 sec
Reputation Power: 0
Send a message via AIM to Codyg Send a message via Yahoo to Codyg
Well thanks and go figure, they don't support php. %*&^

Reply With Quote
  #7  
Old August 25th, 2003, 10:06 AM
karsh44's Avatar
karsh44 karsh44 is offline
Just another guy
Dev Shed Frequenter (2500 - 2999 posts)
 
Join Date: Jun 2003
Location: Wisconsin
Posts: 2,915 karsh44 User rank is Second Lieutenant (5000 - 10000 Reputation Level)karsh44 User rank is Second Lieutenant (5000 - 10000 Reputation Level)karsh44 User rank is Second Lieutenant (5000 - 10000 Reputation Level)karsh44 User rank is Second Lieutenant (5000 - 10000 Reputation Level)karsh44 User rank is Second Lieutenant (5000 - 10000 Reputation Level)karsh44 User rank is Second Lieutenant (5000 - 10000 Reputation Level)karsh44 User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 1 Week 6 Days 13 h 13 m 21 sec
Reputation Power: 76
What do they support? You can get site statistics with other server-side applications. Have you checked webalizer, as dr groove suggested?

Reply With Quote
  #8  
Old August 25th, 2003, 10:11 AM
drgroove's Avatar
drgroove drgroove is offline
pushing envelopes, not pencils
Dev Shed God 2nd Plane (6000 - 6499 posts)
 
Join Date: Feb 2002
Posts: 6,225 drgroove User rank is First Lieutenant (10000 - 20000 Reputation Level)drgroove User rank is First Lieutenant (10000 - 20000 Reputation Level)drgroove User rank is First Lieutenant (10000 - 20000 Reputation Level)drgroove User rank is First Lieutenant (10000 - 20000 Reputation Level)drgroove User rank is First Lieutenant (10000 - 20000 Reputation Level)drgroove User rank is First Lieutenant (10000 - 20000 Reputation Level)drgroove User rank is First Lieutenant (10000 - 20000 Reputation Level)drgroove User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 1 Day 4 h 44 m 44 sec
Reputation Power: 174
Quote:
Originally posted by karsh44
What do they support? You can get site statistics with other server-side applications. Have you checked webalizer, as dr groove suggested?


If you're simply using your ISP's server and some freebie space provided w/ a broadband account (which is what I'm assuming you're doing @ this point) you may or may not have access to the server's log files, in which case using webalizer isn't an option.

You'll need to contact your ISP to find out if log file access is available, as well as find out if they support the use of any server-side scripting languages (most common are Perl, PHP, and ASP). Again, though, if this is just some freebie space that your ISP is giving you, you may not have access to server-side scripting either.

If you do have access to server-side scripting, post which languages your ISP will support here, so we can give you better advice as to how to track visitation statistics.

Reply With Quote
  #9  
Old August 25th, 2003, 10:37 AM
Codyg Codyg is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Location: MA
Posts: 25 Codyg User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 32 sec
Reputation Power: 0
Send a message via AIM to Codyg Send a message via Yahoo to Codyg
Thanks again for all your help guys. I have come to conclusion that I am in over my head. I have searched but I don't know what to search for is part of the problem. Sorry to have bothered you.

Newbie/Rookieboy

Reply With Quote
  #10  
Old August 25th, 2003, 10:41 AM
karsh44's Avatar
karsh44 karsh44 is offline
Just another guy
Dev Shed Frequenter (2500 - 2999 posts)
 
Join Date: Jun 2003
Location: Wisconsin
Posts: 2,915 karsh44 User rank is Second Lieutenant (5000 - 10000 Reputation Level)karsh44 User rank is Second Lieutenant (5000 - 10000 Reputation Level)karsh44 User rank is Second Lieutenant (5000 - 10000 Reputation Level)karsh44 User rank is Second Lieutenant (5000 - 10000 Reputation Level)karsh44 User rank is Second Lieutenant (5000 - 10000 Reputation Level)karsh44 User rank is Second Lieutenant (5000 - 10000 Reputation Level)karsh44 User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 1 Week 6 Days 13 h 13 m 21 sec
Reputation Power: 76
Well, you can quit if you want, of course, but all it would take is a simple call to your ISP to see if you have access to the server logs, and what server-side scripting they support. They should tell you this no problem.
Cheers

Reply With Quote
Reply

Viewing: Dev Shed ForumsOtherBeginner Programming > Tracking visitors


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support |