Handles Error for PHP_SAFE_MODE