Re: How to argue with ASP people...
| From: | Sagar C Nannapaneni | Date: | Tue, 04 Jan 2005 23:18:08 +0000 |
| Subject: | Re: How to argue with ASP people... | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-205660@lists.php.net to get a copy of this message | ||
Ya..
I just had an argument with my collegue (who is ASP programmer).
He said that in ASP he can use a global variable to store the counter and
then
when the IIS is shutting down he can grab that event and dump the counter
variable
to a text file. I just betted him that i can also do that with PHP.
/sagar
----- Original Message -----
From: "Chris Shiflett" <shiflett@php.net>
To: "Sagar C Nannapaneni" <sagar@rythumithra.com>;
<php-general@lists.php.net>
Sent: Tuesday, January 04, 2005 10:12 PM
Subject: Re: [PHP] How to argue with ASP people...
> --- 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/
>
>