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:[EMAIL PROTECTED]] Sent: Thursday, January 30, 2003 1:45 PM To: [EMAIL PROTECTED] 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? -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php