abbierose
04-17-2007, 04:53 AM
Hello! Can anyone help me with this.... thank you in advance
Every time that I upload a file thru a php form the error "failed to open stream: Permission denied" comes up. And everytime that this error occurs, I'll change the permission mode of the destination directory to 777 thru my ftp program, and the uploading of files will work again.
However, I do not want that each time that I upload a file I will have to set the file permission of the destination directory again and again. I have tried using the chmod in my php file, but I am not permitted to use it - "Warning: chmod() [function.chmod]: Operation not permitted "
How do I keep the directory mode to 777? It seems that the server changes it back to 755 everytime.
Thanks,
Abbie
Every time that I upload a file thru a php form the error "failed to open stream: Permission denied" comes up. And everytime that this error occurs, I'll change the permission mode of the destination directory to 777 thru my ftp program, and the uploading of files will work again.
However, I do not want that each time that I upload a file I will have to set the file permission of the destination directory again and again. I have tried using the chmod in my php file, but I am not permitted to use it - "Warning: chmod() [function.chmod]: Operation not permitted "
How do I keep the directory mode to 777? It seems that the server changes it back to 755 everytime.
Thanks,
Abbie