Remove last of ini_set() for allow_url_fopen. This hasn't worked since PHP 4.3.4...