Hi,
I'm creating a web form that needs to draw some checkboxes based on data that is stored in an XML file (the XML file is a requirement). These checkboxes would be drawn after a user selects an operating system from a drop down box.
I'd like to avoid re-parsing the relatively static XML into PHP variables every time a new user requests the page. I'm assuming that if I write code in PHP to access this XML file, that the code would be re-run every time a new session starts.
This brings up several questions:
Is this even an issue, or is there some kind of built-in caching that would automatically cache the results of this PHP script in memory?
If this is an issue - is there a way to create a PHP script that would get executed, say, every time the Apache server reboots, and then somehow have the variables stored in memory?
I'm thinking of JSP where you can cache pages so that when the next user requests them the results are available quickly.
- Am I way off base here in thinking that parsing XML in PHP is kind of slow, like it is in Java?
THANKS for any suggestions.
shelby