|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
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?
|
|
#2
|
||||
|
||||
|
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 |
|
#3
|
||||
|
||||
|
Hi,
Here is a simple example using php and mysql: track.php PHP Code:
viewtracks.php PHP Code:
Hope that makes sense and is useful to you... |
|
#4
|
|||
|
|||
|
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? |
|
#5
|
||||
|
||||
|
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 |
|
#6
|
|||
|
|||
|
Well thanks and go figure, they don't support php. %*&^
|
|
#7
|
||||
|
||||
|
What do they support? You can get site statistics with other server-side applications. Have you checked webalizer, as dr groove suggested?
|
|
#8
|
||||
|
||||
|
Quote:
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. |
|
#9
|
|||
|
|||
|
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 |
|
#10
|
||||
|
||||
|
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 |
![]() |
| Viewing: Dev Shed Forums > Other > Beginner Programming > Tracking visitors |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|