Picking up PHP again caused me a lot of pain today.
The source of my pain wasn't just this, and my troubles go far beyond this point. I'll gradually elaborate on them.
Let's start with PHP. The reason is that there was a pre-packaged API for campus use — a class specifically designed for PHP5 called XNAPP. However, my server runs PHP 4.3.11, so I can't use this damn exclusive class.
This damned version issue had me tinkering all day, giving me a headache the entire time. Now, at 9 PM, I've come to the conclusion: I'm out of options — either I give up or switch servers. I won't complain anymore; let me just explain how to parse an XML file using PHP on a PHP4 server.
It’s about converting an XML file into an array.