Denied File Upload
Posted: Fri Jun 21, 2002 12:12 am
When trying to upload a file through a form I get the following error:
Unable to create '/home/ranchsal/public_html/images/finalcdLogo.jpg': Permission denied in /home/ranchsal/public_html/test.php on line 49
The problem seems to come from this line "if (!copy($imgfile,"$newfile"))"
I copied the code from this site(which is helpful), so it should work. Why am I getting this error, does it have to do with my host? And more importantly how can I fix it. Heres a link to my site.Thank you!
-Ace
You can email me to for clarifications or more code at ace2600@hotmail.com
Unable to create '/home/ranchsal/public_html/images/finalcdLogo.jpg': Permission denied in /home/ranchsal/public_html/test.php on line 49
The problem seems to come from this line "if (!copy($imgfile,"$newfile"))"
I copied the code from this site(which is helpful), so it should work. Why am I getting this error, does it have to do with my host? And more importantly how can I fix it. Heres a link to my site.Thank you!
-Ace
You can email me to for clarifications or more code at ace2600@hotmail.com