I'm a passionate freak of PHP from the past 4 years (that i can remember). And i love everything that php can do. But just 2 days ago i came along a situation where i have to write a hit counter for my website without using a database or a text file. Just using a global variable i wanted to do this.
Not possible in any language. Well, it's possible in a way I guess. The count could be stored in memory, but as soon as the box is restarted, memory is dumped, etc., you'll lose the count.
I dont know whether php can do this...(or may b i missed it out)...but i couldnt get any equivalent thing in php like we have GLOBAL.ASA in ASP.
GLOBAL.ASA uses a file to retain it's settings.
-- John C. Nichel ÜberGeek KegWorks.com 716.856.9675 [EMAIL PROTECTED]
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php