Re: Application Scope variables ?

From: aa (aa_at_virgin.net)
Date: 09/21/04


Date: Tue, 21 Sep 2004 17:40:18 +0100

Just to stream the discussion up - how a page hit conter in implemented in PHP?
In ASP you increment a relative Application scope variable every time a page is requested. This veraible is accessible from any session.
This variable is sitting in the memory as long as the Application (i.e. the website) is running.
If the Application is stopped, it fires an event "application_on_close" and on this event you write an application data to a file from which it can be recovered when the application is restarted.

How do I get the same effect in PHP?
  "aa" <aa@virgin.net> wrote in message news:414eb86a$0$80627$ed2619ec@ptn-nntp-reader01.plus.net...
  I am migrating to PHP from ASP where there are the Application Scope variables which are accessible from any page on a website and which are used, in particular, for hit counters.
  Is there a similar mechanism in PHP?



Relevant Pages

  • Re: Application Scope variables ?
    ... Just to stream the discussion up - how a page hit conter in implemented in PHP? ... I am migrating to PHP from ASP where there are the Application Scope variables which are accessible from any page on a website and which are used, in particular, for hit counters. ...
    (comp.lang.php)
  • Application Scope variables ?
    ... I am migrating to PHP from ASP where there are the Application Scope variables which are accessible from any page on a website and which are used, in particular, for hit counters. ...
    (alt.php)
  • Application Scope variables ?
    ... I am migrating to PHP from ASP where there are the Application Scope variables which are accessible from any page on a website and which are used, in particular, for hit counters. ...
    (comp.lang.php)
  • Re: What is the difference between php & asp?
    ... >ASP is a Microsoft product based on the very ackward Visual Basic syntax ... >PHP is a C-Like, ... >need to physically register on the server. ... It works fine with SQL Server and Access if you really really ...
    (alt.php)
  • Re: IIS, ASP & PHP - is it possible?
    ... IIS is perfectly able to run both ASP and PHP on the same server at the ...
    (microsoft.public.inetserver.iis)