|
From: Alexis S. <al...@su...> - 2001-11-23 14:24:24
|
OK, as strange as it may seem, I can see cookies in count.php ! The problem is no more then. To do : - set a unique cookie on remote client when they visit the site - use this cookie to determine users - create the function that count users, visits, page views - create a script to look at the stats > >Log Message: > >There is a problem with php counter : >a script called in img src does not inherrit the parent environement var= s. >Indeed : count.php is a script called from a HTML page like that : > ><img src=3D'count.php'> > >the script count.php doesn't see $HTTP_REFERER when it is called like th= at. >but when you follow a link to count.php, the var $HTTP_REFERER is set. > > >To bypass this problem I have to make a JavaScript function that make a = call to count.php with the value I need in the URL. >The JavaScript now write something like that : > ><img src=3D'count.php?REF=3Dthe_referrer'> > --=20 Alexis Sukrieh | Sukria.net=20 al...@su... | http://sukria.net/ "L'homme et le monde sont deux syst=E8mes toxiques l'un pour l'autre." - Philip K DICK. |