Trouble with PHP form

Trouble with PHP form

Postby Schwieg » Thu Nov 22, 2007 10:53 pm


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.
Posts: 3
Joined: Sun Nov 18, 2007 10:38 am

Postby divya » Fri Nov 30, 2007 12:04 am

Hello Schwieg,

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


Return to PHP

Who is online

Users browsing this forum: No registered users and 1 guest