I'm guessing you could just add as many variables
you want to collect at the end of the counter.php
script.  Does that help?

<img
src="http://www.my.com/counter.php?site=0011&PHPSE
SSID=lkjasfoia99sd9asfdsaf9">




-----Original Message-----
From: Martin Smetak
[mailto:[EMAIL PROTECTED]]
Sent: June 5, 2002 6:48 AM
To: 1LT John W. Holmes; [EMAIL PROTECTED]
Subject: Re: [PHP] multisite hit counter, includin
session statistics


Completely misunderstood :o)

One more try:

I need to put into some page(www.some.com), which
is not on my server, a
link to my script-counter, running on my
server(www.my.com).
The easiest way to do that is to place it to the
page in form of an blank
image, so in the index.html on www.some.com will
be code like
.....
<img
src="http://www.my.com/counter.php?site=0011";>
.....

When user accesses www.some.com page, he gets my
"image" and runs a script.
This way I can count number of page visits, store
IP numbers of
visitors....but don't know how to store
number of unique users that access page, number of
sessions.
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
This is what I need. You know how to do that?

Thanks a lot,
Minca


> No problem bud, sorry I tried to help.
>
> Anyhow, this does work, you just do not know how
to write image.php so
that
> it returns the correct data for an image
counter. maybe i misunderstood
your
> first email, but I thought you were looking for
a "hidden" way of keeping
> track of page hit counts and user paths, etc.
>
> If your talking about files that can have PHP in
them, then this is as
> simple as an include() file that generates the
correct <img> calls to
> product the correct number, while tracking the
other information you want.
>
> If you want to call this on a plain HTML page
that can't parse PHP, then
the
> only way I know of is to create an image call to
a PHP script. Maybe you
can
> do more with Javascript or SSI, if that's
available...
>
> ---John Holmes...
> ----- Original Message -----
> From: "Martin Smetak" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Tuesday, June 04, 2002 12:14 PM
> Subject: Re: [PHP] multisite hit counter,
includin session statistics
>
>
> > <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



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
http://www.php.net/unsub.php



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to