If you have the ability to compile extensions into PHP and you're not
running under Windows you may find useful an extension I wrote that is one
solution to this problem (and more).
http://pwee.sourceforge.net/
Note that I haven't yet compiled it under anything later than PHP 4.2.1.
Lance
Thanks to everybody for the answers. I'll store the data somewhere
(probably in a file).
Kind regards,
Jean-Yves
-
In article <[EMAIL PROTECTED]>,
[EMAIL PROTECTED] (Jason Davidson) wrote:
> Im reading up a little on it, from the msdn site, "make your ASP pages
> stateless if possible, rel
Jason Davidson wrote:
Im not so sure asp is completely stateless is it. The application var
will hold a var as long as the server is running, for any visitor. The
var doesnt need to be set each page load either..
eg. Application("counter").. you can add to the counter on any page, by
any visitor
Im reading up a little on it, from the msdn site, "make your ASP pages
stateless if possible, relying on Session or Application variables for
transient state only" Interesting, but not conculsive. ASP sucks
anyways..
Bottom line, PHP is definately stateless, and there is no Application()
equivile
Jean-Yves Jourdain wrote:
Is there a way to have global persistent variable with PHP? I would like
to reproduce the use of the ASP
possibility. The variable "name" will be available to every users...
No. If the values are read-only, you can use an .ini file and
parse_ini_file(). If they are rea
Hi,
Wednesday, August 11, 2004, 1:36:45 AM, you wrote:
JYJ> Hi,
JYJ> Is there a way to have global persistent variable with PHP? I would like
JYJ> to reproduce the use of the ASP
JYJ> possibility. The variable "name" will be available to every users...
JYJ> Thank-you in advance,
JYJ> Kind reg
[snip]
Im not so sure asp is completely stateless is it. The application var
will hold a var as long as the server is running, for any visitor. The
var doesnt need to be set each page load either..
eg. Application("counter").. you can add to the counter on any page, by
any visitor, at any time,
Im not so sure asp is completely stateless is it. The application var
will hold a var as long as the server is running, for any visitor. The
var doesnt need to be set each page load either..
eg. Application("counter").. you can add to the counter on any page, by
any visitor, at any time, and it
[snip]
s there a way to have global persistent variable with PHP? I would like
to reproduce the use of the ASP
possibility. The variable "name" will be available to every users...
[/snip]
One other thing I should have mentioned...neither ASP or PHP is
'persistent', they are both stateless. We i
On Tue, 2004-08-10 at 08:36, Jean-Yves Jourdain wrote:
> Hi,
>
> Is there a way to have global persistent variable with PHP? I would like
> to reproduce the use of the ASP
> possibility. The variable "name" will be available to every users...
>
> Thank-you in advance,
>
> Kind regards.
>
> J
Not like asp's application("") there isnt. You can use phps $_SESSION
var, which is similar to asps Session(). I dont think php runs the
same asp, in order for asp's application vars to work, you would think
that asp must be running in some state continuously, and i dont think
php does that. I
[snip]
Is there a way to have global persistent variable with PHP? I would like
to reproduce the use of the ASP
possibility. The variable "name" will be available to every users...
[/snip]
http://us2.php.net/manual/en/language.variables.scope.php
--
PHP General Mailing List (http://www.php.net
12 matches
Mail list logo