Put your file in another folder. PHP scripts can be run from the root folder without those security restrictions. That would be a suitable place.