Actually a lot of web hosting, uses the open_basedir in a safe php setting.
your option is to create a directory where it is allowed, such as your root.
create a directory, and an .htaccess file that makes the directory forbidden.
.htaccess
Should work, allowing your php files access, and disallowing web access.