Re: multisite hit counter, includin session statistics
| From: | Martin Smetak | Date: | Tue, 04 Jun 2002 16:14:27 +0000 |
| Subject: | Re: multisite hit counter, includin session statistics | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-100599@lists.php.net to get a copy of this message | ||
<img src="http://www.yourserver.com/image.php?ID=xxx">
Well, how can this help me? This is the way I need to use the counter on web
page, it solves nothing.
I need the same thing u are asking to, but this way it doesn't work. But
there are counters-sites that uses
this method(img) producing session statistics.
Anyone know how they do that?
Minca
>
> Do what you need to do with the PHP code as far as keeping a count of
> visitors, etc, and then create an image header and send it the data for a
> 1x1 pixel transparant image.
>
> Got a question for everyone else, b/c I'm not sure on this. If I have a
link
> like the above on www.example.com, say, and it linkes to
> www.yourserver.com/image.php, can I start a session in that file and have
it
> carry over each time this image is called? i.e. image.php would start a
> session, see if one already exists, update counts and "track" of user,
then
> send image headers and data. Will that work? I'm at work now, so I can't
> test it. What I'm worried about is the session cookies being accessible
when
> it's an image being requested, not a web page...
>
> Any suggestions welcome...
>
> ---John Holmes....
>
> ----- Original Message -----
> From: "Martin Smetak" <minca_php_general@no9.cz>
> To: <php-general@lists.php.net>
> Sent: Tuesday, June 04, 2002 11:30 AM
> Subject: [PHP] multisite hit counter, includin session statistics
>
>
> > Hi!
> >
> > I want to write some multisite hit counter, but including session
> > statistics.
> > Anyone knows how to do that? I mean: I need to place some link on the
> page