Is it possible to pool data or functionality in PHP?
The amateur-ish PHP code that I write wakes up to handle a response, loads functions, opens database connections, create objects, initialises them, and then - dies after 0.01 secs when the response has been processed, leaving the next request to reload, parse, and run mainly the same thing again.
That's non-sensical, and I find it removes the value of a lot of my work not to have functionality/data/object pooling. For example I can write classes, to find they all get reinitialised with each request - what's the point of me trying to develop a meaningful object structure?
And so: how can I write PHP to pool data and functionality?