Re: How to argue with ASP people...

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxx>
To: "Sagar C Nannapaneni" <sagar@xxxxxxxxxxxxxxx>;
<php-general@xxxxxxxxxxxxx>
Sent: Tuesday, January 04, 2005 10:12 PM
Subject: Re:  How to argue with ASP people...


> --- Sagar C Nannapaneni <sagar@xxxxxxxxxxxxxxx> 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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux