About visitor statistics
Moderator: General Moderators
About visitor statistics
Hi everybody,
i'm developping a mini social website that allows to the users to create their
public web page.
After creation, their public webpage can be seen at http://www.mywebsite.com/user=username.
And of course, the user "username" can access to his profil and modify his information.
What i want to do is to give to the user the possibility to see who visited his public
website (http://www.mywebsite.com/user=username).
How can i do that?
Thanks by advance.
Regards.
i'm developping a mini social website that allows to the users to create their
public web page.
After creation, their public webpage can be seen at http://www.mywebsite.com/user=username.
And of course, the user "username" can access to his profil and modify his information.
What i want to do is to give to the user the possibility to see who visited his public
website (http://www.mywebsite.com/user=username).
How can i do that?
Thanks by advance.
Regards.
Re: About visitor statistics
maybe the user could include a little javascript code as part of their site.
Re: About visitor statistics
Thanks for your reply,
what will do this javascript code?
Regards.
what will do this javascript code?
Regards.
Re: About visitor statistics
you can also makes them add a hidden frame
visitcountrer.php
//very simplistic aproach
Code: Select all
<iframe id="RSIFrame"
name="RSIFrame"
style="width:0px; height:0px; border: 0px"
src="http://mainserver/visitcounter.php?user=XXX"></iframe>
//very simplistic aproach
Code: Select all
$user = some_validating_function($_GET['user']);
$sql= "update visits set counter = counter+1 where $user";
//execute sql;
Re: About visitor statistics
Okey,
don't you know where can I find some functions that get user IP and then geolocalize him?
don't you know where can I find some functions that get user IP and then geolocalize him?
Re: About visitor statistics
How are you letting them edit their webpage? If you have some sort of panel set up, you should parse the page for them. Will make it far more secure (if done right) and will give you far more control.
The code below will print out a visitor's IP address.
The code below will print out a visitor's IP address.
Code: Select all
<?php
echo $_SERVER['REMOTE_ADDR'];
?>
Re: About visitor statistics
Thank you,
but, is there some libs containing some functions that can handle visitor statistics?
Regards.
but, is there some libs containing some functions that can handle visitor statistics?
Regards.
- John Cartwright
- Site Admin
- Posts: 11470
- Joined: Tue Dec 23, 2003 2:10 am
- Location: Toronto
- Contact:
Re: About visitor statistics
There is a ton of traffic analysis software out there, but probably nothing with your fine grained requirements. What you want is quite simple to do, actually. Give it a shot!