Page 1 of 1

How to CHMOD uploaded images automatically

Posted: Thu Apr 22, 2004 8:02 am
by creative
How can you CHMOD uploaded images automatically?

After uploading an image through the php back end, somehow the CHMOD is changed from 777 to something else and the image does not get displayed.

Any help would be greatly appreciated!

Thanks, creative

Posted: Thu Apr 22, 2004 8:37 am
by twigletmac
When you upload them use [php_man]chmod[/php_man]()?

Mac

Posted: Thu Apr 22, 2004 9:20 am
by redmonkey
Depending on your server setup you may need to use umask()