PHP and sharing resources between requests

ancuh0

New Member
I'm looking for a way to share PHP resources between requests. First of all, I want to share parsed XML. I have some large XML that I use in readonly mode, and currently I have to load and parse it for each HTTP request.I've read this: http://php.net/manual/en/function.shm-put-var.php and the other shared memory API documentation, and I know that there is no straight way to store resources in shared memory. That's why I ask here.So, I have XML, I use it in readonly mode (performing XPath-requests), this XML is large, and I'm looking for some way to eliminate the need of loading and parsing it for each HTTP request. Any ideas or advices about this?Thank you.
 
Back
Top