PDA

View Full Version : Error uploading files with php


rutame
29th September 2008, 19:28
Hello to everybody.

A littler time ago i had made an script for upload files but now does not work. I get this error message:
This is the first error:
Warning: move_uploaded_file(subidos/imagenes/huawei.jpg) [function.move-uploaded-file]: failed to open stream: Permission denied in /var/www/web2/web/actualizadoc.php

I changed the permisions for the destination directory to 777 althought with a 666 i think is enought.

My system is a ubuntu server 8.04 with ispconfig (a few days ago all were working fine but i had make a new installation)

Thank you

rutame
29th September 2008, 19:57
It is fix it. Althought i changed the permissions in subdirectory only works if the permissions has been changed in the /web directory the way recursive. When i make that all become to fine.

Thank you again