Board index   FAQ   Search  
Register  Login
Board index php forum :: php coding PHP coding => Images

change default path to upload_tmp_dir

images php coding issues or problems here.

Moderators: macek, egami, gesf

change default path to upload_tmp_dir

Postby npereira » 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/lesharfangsdegatineau.com/httpdocs

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/lesharfangsdegatineau.com/httpdocs/wallpapers, 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/lesharfangsdegatineau.com/httpdocs/tmp and not the server /tmp location?

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

Return to PHP coding => Images

Who is online

Users browsing this forum: No registered users and 1 guest

Sponsored by Sitebuilder Web hosting and Traduzioni Italiano Rumeno and antispam for cPanel.

cron