Forum Moderators: coopster

Message Too Old, No Replies

PHP Uploads

Where are they going?

         

Garfield

5:53 pm on Mar 5, 2004 (gmt 0)

10+ Year Member



Hi folks,

I'm having some trouble with an upload script of mine. it worked great until my hoster activated mod_rewrite for me. From that day on all uploads are terminated with this error message:

Warning: filesize(): open_basedir restriction in effect. File(/home/www/web1298/phptmp/phpKXFQCm) is not within the allowed path(s): (/home/www/web1088) in /home/www/web1088/html/temp/includes/writearticle_pckonsole_upload.php on line 72

As far as I understand this is because the upload_tmp_dir is set wrong. Everytime the script is called the directory changes (web1298, web78, web****) randomly.

I tried to change the directory with ini_set("upload_tmp_dir","/home/www/web1088/phptmp");, but this didn't work either.

My hoster claims I just have to set the right tmp path, but it doesn't work! So do you have any idea how to resolve this?

I dodn't know if it has something to do with that mod_rewrite stuff, but the problems started the day, when it was activated.

Thanks a lot!

Garfield

6:44 pm on Mar 5, 2004 (gmt 0)

10+ Year Member



Please consider this topic as solved!

I don't know what went wrong, but it was my hoster's fault. So he fixed it ;)

Thanks anyway!