Re: How to argue with ASP people...

From: Date: Tue, 04 Jan 2005 16:42:11 +0000
Subject: Re: How to argue with ASP people...
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-205597@lists.php.net to get a copy of this message
--- Sagar C Nannapaneni <sagar@rythumithra.com> wrote: > 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. > > 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. If GLOBAL.ASA isn't considered a text file, then you can probably use SQLite. Just don't call it a database. :-) What sort of situation did you encounter where you were required to persist data without the two primary means of doing so? You can persist data in memory, I guess, depending on how permanent you need this to be - your hit counter would be reset when the server reboots. It could be like the high scores on an arcade machine. :-) Chris ===== Chris Shiflett - http://shiflett.org/ PHP Security - O'Reilly HTTP Developer's Handbook - Sams Coming Soon http://httphandbook.org/

« previous php.general (#205597) next »