something like Application
Moderator: General Moderators
-
nitinjavakid
- Forum Newbie
- Posts: 3
- Joined: Tue Jan 09, 2007 11:45 am
something like Application
Is there something in php which is similar to Application in ASP?
- Chris Corbyn
- Breakbeat Nuttzer
- Posts: 13098
- Joined: Wed Mar 24, 2004 7:57 am
- Location: Melbourne, Australia
- dibyendrah
- Forum Contributor
- Posts: 491
- Joined: Wed Oct 19, 2005 5:14 am
- Location: Nepal
- Contact:
It's a container for application wide data. Imagine you have 100 people using an app, Application would be used for data that's shared between all of them such as counters, locks, maybe even database connections (though that would be better handled by a proper connection pool).dibyendrah wrote:What does Application in ASP do ?
You can use a shared memory in PHP: http://php.net/manual/de/ref.sem.phponion2k wrote:It's a container for application wide data.
- Kieran Huggins
- DevNet Master
- Posts: 3635
- Joined: Wed Dec 06, 2006 4:14 pm
- Location: Toronto, Canada
- Contact:
If you're using a database you'd be best off using a heap table. The main thing about Application data is making sure users affecting the stored variables don't mess with one another, so it needs to be fast. All the data in a heap is lost on a reboot, but that's the same as Application data under IIS anyway so it'd be more 'realistic'.
- dibyendrah
- Forum Contributor
- Posts: 491
- Joined: Wed Oct 19, 2005 5:14 am
- Location: Nepal
- Contact:
- Christopher
- Site Administrator
- Posts: 13596
- Joined: Wed Aug 25, 2004 7:54 pm
- Location: New York, NY, US