change default path to upload_tmp_dir

images php coding issues or problems here.

Moderators: egami, macek, gesf

Post Reply
New php-forum User
New php-forum User
Posts: 10
Joined: Wed Jan 15, 2003 4:01 pm

Mon Mar 24, 2003 7:36 am

Hi all,

I have my website hosted on a server and cannot make configuration changes. When getting the phpinfo.php, it shows that I have open_basedir restrictions on /usr/local/psa/home/vhosts/

The problem is that I use a script for photo upload, and they upload the file to a temporary directory ' /tmp' on the server, but when the script comes to transfer the file from /tmp to /usr/local/psa/home/vhosts/, i get into the problem of open_basedir restrictions.

Is there a way to script something to say that the /tmp directory is actualy at /usr/local/psa/home/vhosts/ and not the server /tmp location?


Post Reply