When you get a fatal error from PHP which is saying that the open_basedir restrictions are in place it simply means that it’s not possible to include or open files outside these directories.
However, this can be solved by changing the ‘open_basedir‘ ini using the ini_set() function or when you’re hosted on a Plesk server by creating a vhost.conf file in the conf directory using the following contents:
<Directory VHOST_DIR/httpdocs>
php_admin_value open_basedir "VHOST_DIR/httpdocs:/tmp:VHOST_DIR/ADD_DIR"
</Directory>
Change VHOST_DIR to the directory of your domain, and ADD_DIR to the directory you wish to add. After this run the following command to reload the configuration for the webserver.
/usr/local/psa/admin/sbin/websrvmng -v -a
However, chances are that this is not possible for your account at which point you have to ask your hoster to either disable or add the directory the open_basedir directive for your account.