Re: Re: Counter problems!

From: Date: Thu, 30 Jan 2003 14:15:43 +0000
Subject: Re: Re: Counter problems!
References: 1 2  Groups: php.windows 
Request: Send a blank email to php-windows+get-18234@lists.php.net to get a copy of this message
counters... 1. make an 1px * 1px transparent image 2. make a php page that delivers that image always depending on the exact url of it... and stores the result on the required record... 3. make a rotine that generates those url and that stores the reference in a database... 4. make a rotine that generates the next url based on a previous one... 5. track url expiration to detect if it is a new request or a repeated one... Cheers... Luis Ferro TelaDigital.net J Veenhuijsen wrote:
A little trick could be to place couter.txt outside of the docroot. I placed couter.txt as c:\couter.txt and that works. Jochem Jill Ramonsky wrote:
Yes, Jochem's right. One thing though, Radovan. If your script WRITES TO the file "counter.txt" then I assume that script's directory must give write permission to the whole world. That is a very dangerous thing to do. There would be nothing to stop a hacker from saving arbitrary binary (or PHP) code in that directory, and hence doing ANYTHING to your server. A more secure counter could be stored in a mysql database. Jill -----Original Message----- From: J Veenhuijsen [mailto:info@solid-digital.nl] Sent: Thursday, January 30, 2003 1:45 PM To: php-windows@lists.php.net Subject: [PHP-WIN] Re: Counter problems! I tested that and the counter does not increase when i hit the refresh button or press enter in the adressbar. It only increases when i quit the explorer and reopen the same link afterwards. Which is ofcourse a new visit because the session is distroyed when closing the browser. Jochem Radovan Radic wrote:
Yes, but what if you refresh the page? Or type in the address bar index.php and press enter, i think it will be increased?
--- [This E-mail scanned for viruses by Declude Virus]

« previous php.windows (#18234) next »