--- Sagar C Nannapaneni <[EMAIL PROTECTED]> 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/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to