Re: Persistent global variable?



howachen@xxxxxxxxx said the following on 27/09/2006 16:49:
Hi,

Are there something like a `Persistent global variable` in PHP?

It is something like `Application` in the classic ASP, all the request
share the same variable, and the die after a timeout.


Sessions.
http://php.net/manual/features.sessions.php

Be aware that sessions are not cross-user though. Each user has their own set of independent persistent variables.

--
Oli
.



Relevant Pages

  • Re: Web based Access Applications
    ... php is the most common cost-less language. ... > Classic ASP is always there and there is ASP.NET. ... So, I switched to PHP, which is much harder for me as an Access ... testbed environment and the deployment environment. ...
    (comp.databases.ms-access)
  • Re: page viewer web part
    ... pass the form values to your php app. ... Classic ASP would probably be a meta ... > the time or resources to convert our applications from PHP to .NET. ... > We were thinking we would use a page viewer web part to view these PHP ...
    (microsoft.public.sharepoint.portalserver.development)
  • ASP to PHP Conversion (x-posted)
    ... but I'm new to PHP and I didn't take the ... time to see which newsgroup would be best suited to this request. ... I'd like to convert an existing classic ASP ...
    (alt.php)
  • Re: Why Microsoft Why???
    ... I feel your pain (as a former VB 6.0 and Classic ASP) guy myself. ... >>> Why has Microsoft turned it's back on ASP developers? ... >> PHP can't hold a candle to what ASP.NET is and what it has to offer. ...
    (microsoft.public.dotnet.general)