title: PHP and sharing resources between requests
body: <p>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.</p>
  
  <p>I've read this: <a href="http://php.net/manual/en/function.shm-put-var.php" rel="nofollow">http://php.net/manual/en/function.shm-put-var.php</a> 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.</p>
  
  <p>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?</p>
  
  <p>Thank you.</p>