Computer Science Canada file upload HEEEEEEEEEEEEEEEEEEELP!!! |
Author: | Homer_simpson [ Fri Apr 09, 2004 7:53 pm ] |
Post subject: | file upload HEEEEEEEEEEEEEEEEEEELP!!! |
ok i got this hosting, domain,etc.... http://boobnewb.com/forum is the address to the problem it's a phpbb forum... but when i try uploading files(for example avatars) here's what it gives me... Quote: Warning: move_uploaded_file(./images/avatars/1979652398407736a3afc8b.jpg): failed to open stream: Permission denied in /home/wwwboob/public_html/forum/includes/usercp_avatar.php on line 227
Warning: move_uploaded_file(): Unable to move '/tmp/phpKDqgEZ' to './images/avatars/1979652398407736a3afc8b.jpg' in /home/wwwboob/public_html/forum/includes/usercp_avatar.php on line 227 Warning: Cannot modify header information - headers already sent by (output started at /home/wwwboob/public_html/forum/includes/usercp_avatar.php:227) in /home/wwwboob/public_html/forum/includes/page_header.php on line 474 Warning: Cannot modify header information - headers already sent by (output started at /home/wwwboob/public_html/forum/includes/usercp_avatar.php:227) in /home/wwwboob/public_html/forum/includes/page_header.php on line 476 Warning: Cannot modify header information - headers already sent by (output started at /home/wwwboob/public_html/forum/includes/usercp_avatar.php:227) in /home/wwwboob/public_html/forum/includes/page_header.php on line 477 HEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEELP! |
Author: | Amailer [ Fri Apr 09, 2004 7:59 pm ] |
Post subject: | |
set your avatar file permissions to CHMOD 777 (i think that's the righ one ofr linux) (/images/avatar/) |
Author: | Homer_simpson [ Fri Apr 09, 2004 8:58 pm ] |
Post subject: | |
nvm...thx for feed back tho |
Author: | wtd [ Fri Apr 09, 2004 9:24 pm ] |
Post subject: | |
Amailer wrote: set your avatar file permissions to CHMOD 777 (i think that's the righ one ofr linux) (/images/avatar/)
You should modify that a bit. You dn't need to be granting execute privileges for an image. Doing so opens up security issues if someone wanted to do something nasty like naming an evil shell script the same thing you name your image. ![]() |
Author: | PaddyLong [ Sat Apr 10, 2004 11:42 am ] |
Post subject: | |
set the permissions on the directory to 777 .. although, you might be able to get away with 755 or maybe even 700 .. not sure how webservers treat the client connections :/ |
Author: | Amailer [ Sat Apr 10, 2004 1:35 pm ] |
Post subject: | |
wtd wrote: Amailer wrote: set your avatar file permissions to CHMOD 777 (i think that's the righ one ofr linux) (/images/avatar/)
You should modify that a bit. You dn't need to be granting execute privileges for an image. Doing so opens up security issues if someone wanted to do something nasty like naming an evil shell script the same thing you name your image. ![]() agr, i said file i ment folder (why file?) lol |
Author: | wtd [ Sat Apr 10, 2004 3:30 pm ] |
Post subject: | |
PaddyLong wrote: set the permissions on the directory to 777 .. although, you might be able to get away with 755 or maybe even 700 .. not sure how webservers treat the client connections :/
Generally as "world", rather than "owner" or "group". You do not want to give the world execute privileges to an entire folder. That should be decided on a file by file basis. |
Author: | PaddyLong [ Sun Apr 11, 2004 2:43 pm ] |
Post subject: | |
for writing to the directory you need wx on it. 733 not 755, donno why I said 5 before and you need read (444) on the file... |