Re: Bug #11815: ASP/ColdFusion Application type freature

From: Date: Sun, 01 Jul 2001 10:30:33 +0000
Subject: Re: Bug #11815: ASP/ColdFusion Application type freature
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-58601@lists.php.net to get a copy of this message
Hello, I'd recommand to check out the SRM project at www.vl-srm.net. This is especailly designed for this. THe integrating with PHP is not an a very high level at this moment (IE, no $HTTP_APP_DATA_VARS is set), but that is just a matter of time. The functionality is there at this moment, and is now being tested. If you need some more information, you can mail me privately, or write to the srm@lists.vl-srm.net mailing list. regards, Derick On 1 Jul 2001 jocke@selincite.com wrote: > From: jocke@selincite.com > Operating system: all > PHP version: 4.0.6 > PHP Bug Type: Feature/Change Request > Bug description: ASP/ColdFusion Application type freature > > I'd like PHP to have a feature that behaves similar to ASPs Application (global.asa) file. > > For example if I want to store the sitemap in a database to generate a navigation menu > it's unneccessary to query the database upon every request, instead I'd like to store that > informatoin in a "php-application-wide" storage > (Maybe $PHP_APPLICATION_VARS[] array). > > I can see it could behave similar to the session functions. When session functions are shared > between requests, the application is shared between requests. > > To do this, you could start an application with: > application_start("name"); > > I've not been thinking much about security, but I reckon it should not be possible to > hijack an application, therefore there needs to be a (filebased) system that determines which files > can be within an application. Maybe with a path? like: > > application_start("name", "/path/to/where/my/files/are"); > which means that all files have to be within that folder or in it. > > There should also be a way to determine if the application is started or not, this to run the > code upon start. Like; > > if(!application_exsists("name")) { > // This code is being run when the application starts > application_start("name", "/path/to/files/"); > } > > This would reduce server load and eliminate "hacks" in this area. > > Comments? > > Cheers, > > /Jocke Selin - jocke.selincite.com / jocke@selincite.com > > > -- > Edit Bug report at: http://bugs.php.net/?id=11815&edit=1 > > > > -- > PHP Development Mailing List <http://www.php.net/> > To unsubscribe, e-mail: php-dev-unsubscribe@lists.php.net > For additional commands, e-mail: php-dev-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net > Derick Rethans --------------------------------------------------------------------- PHP: Scripting the Web - www.php.net - derick@php.net SRM: Site Resource Manager - www.vl-srm.net ---------------------------------------------------------------------

« previous php.dev (#58601) next »