Page 1 of 1

Trouble with PHP form

PostPosted: Thu Nov 22, 2007 10:53 pm
by Schwieg
Hello,

I have been trying to set up a feedback form with an optional file upload field. As a whole the file works great but if the upload field is left blank the message
"Warning: copy() [function.copy]: open_basedir restriction in effect. File() is not within the allowed path(s): (/home/dir/:/usr/lib/php:/usr/local/lib/php:/tmp) in /home/dir/public_html/process.php on line 26" appears although the message is sent correctly anyways. I know this isn't much information for you but I don't want to post the whole script here so I'll give you specifically line 26 which is "copy($_FILES['File']['name'], "/public_html/files/".$image_part);"

Any input would be greatlty appreciated!
Thanks again in advance.
Schwieg

PostPosted: Fri Nov 30, 2007 12:04 am
by divya
Hello Schwieg,

Please submit a mail to support@canadianwebhosting.com with your domain name, we will be happy to help you.

Regards,
Divya