php file upload problem

php file upload problem

Posted by: superstark
Posted on: 2003-08-15 18:13:00

i'm getting this this error when using the php function move_uploaded_file():

Warning : open_basedir restriction in effect. File is in wrong directory.

is this because i'm trying this on a subdomain? i get the same error when i use copy(). i've changed the appropriate directory permissions to 777 and put the enctype in my form. any ideas? is it because the uploaded file is outside my basedir as set in httpd.conf? can i even change that, or will i need to do this in perl? thanks!

Re: php file upload problem

Posted by: ardco
Posted on: 2003-08-16 11:18:00

This
https://panel.dreamhost.com/kbase/index.cgi?area=2526
may help some.

Regards,

BobS

Re: php file upload problem *DELETED*

Posted by: superstark
Posted on: 2003-08-16 11:31:00

Post deleted by superstark

Re: php file upload problem

Posted by: will
Posted on: 2003-08-16 11:32:00

That's not going to happen (modifying php.ini or httpd.conf).

You probably need to run PHP as a CGI in this case.

Re: php file upload problem

Posted by: superstark
Posted on: 2003-08-16 11:42:00

thanks will, between your info and the last helpful reply, all roads seem to be leading towards running php as cgi.

Tags: php file uploadphp functionhttpd confuploadeddirectory permissionssubdomainperl