PHP Scripts for dealing with APC