Php file upload problem

software development

#1

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!


#2

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

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


#3

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