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
Denied File Upload
Moderator: General Moderators
-
Fábio Selinger
- Forum Newbie
- Posts: 7
- Joined: Wed Jul 17, 2002 3:21 am
- Location: Porto Alegre/RS
...??
i have the same problem, and i used chmod but ...
warning chmod failed:Operation not permitted
what do i do?
warning chmod failed:Operation not permitted
what do i do?
- twigletmac
- Her Royal Site Adminness
- Posts: 5371
- Joined: Tue Apr 23, 2002 2:21 am
- Location: Essex, UK
Fábio - please don't cross post.
Could anyone responding to him please do so here:
http://www.devnetwork.net/forums/viewtopic.php?t=1627
Mac
Could anyone responding to him please do so here:
http://www.devnetwork.net/forums/viewtopic.php?t=1627
Mac