Oh. The dreaded "oh, yeah" syndrome. :-)
the error message I get: Warning: open_basedir restriction
There's your answer. Gotta turn that off in your .ini file.
I assume this is a hosted server rather than a dedicated one
"owned" by you, right? You will probably have to take it
up with your site admin, then. It sounds like it's misconfigured
to me--that is, if you have access via FTP to higher-level
directories, then there's no logical reason for forbidding your
own php programs from accessing them.
In other words, on a typical apache site with multiple virtual sites,
your directory structure may look like this:
/home/yourname
/home/yourname/public_html
The first is the root of the tree that belongs to you; the
second is apache's DOCUMENT_ROOT for your virtual site.
There is no reason for open_basedir to be set to either
'/home/yourname/public_html' or '.' (which gives the same
effect) as that ends up protecting you against yourself.
Setting it to '/home/yourname' is all that is needed to
protect others from you.