Re: Anyone wrote persistent variable extension?

From: Date: Wed, 10 Apr 2002 09:05:44 +0000
Subject: Re: Anyone wrote persistent variable extension?
References: 1 2 3  Groups: php.dev 
Request: Send a blank email to php-dev+get-82454@lists.php.net to get a copy of this message
> Usage: > <?php > > if (!isset($_PERSISTENT['VAR'])) { > include('register_very_large_array.inc'); > } > > ?> What would the scope of this variable be? If it is global (as in PHP engine global) then the solution would not work in an shared environment (and it would not be practical for multiple applications anyway). Ideally, there would be one copy of the variable per application, but we need to somehow define what application is. I think that the best approach would be to introduce a new php configuration option, something like "application_name", and that would then define security for these kinds of things (naturally, you won't be able to change this one from the script :). -- Best regards, Ivan Ristic, Chief Technology Officer DataGate Network Solutions Ltd. - http://www.datagate.net Tel: +44 8700 119090, Fax: +44 8700 119080

« previous php.dev (#82454) next »