Canadian Webhosting Forums Forum Index Canadian Webhosting Forums
Discussion Forums
 
 FAQFAQ   SearchSearch      RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Trouble with PHP form

 
Post new topic   Reply to topic    Canadian Webhosting Forums Forum Index -> PHP
Author Message
Schwieg



Joined: 18 Nov 2007
Posts: 3

PostPosted: Thu Nov 22, 2007 9:53 pm    Post subject: Trouble with PHP form Reply with quote

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
Back to top
divya
CWH Staff


Joined: 24 Jul 2007
Posts: 52

PostPosted: Thu Nov 29, 2007 11:04 pm    Post subject: Reply with quote

Hello Schwieg,

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

Regards,
Divya
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Canadian Webhosting Forums Forum Index -> PHP All times are GMT - 8 Hours
Page 1 of 1

 


Hosting Plans :: Flash Tutorials :: Contact Us :: Privacy Policy


Powered by phpBB, MySQL and PHP