Continuing my previous post. It turned out that my hosting server got a hard-disk problem and had to move all the scripts to one of the existing PHP4 server. That's when I thought my PHP server engine was downgraded.
However, singcat managed to find a new PHP5 server and move back my scripts there. So, all UVA scripts should work fine. I'm updating the UVA ranklist now.