Images created with imagejpeg (and similar) are always 600
Posted: Wed May 14, 2008 1:02 am
Hi all,
I noticed that if I create an image using the function imagejpeg/imagepng the permissions of such file are always set to 600.
This is in most cases no problem if the Apache and PHP are running from the same user (Apache) but on several server (CGI ??) this files are no more readable.
All other files created or copied from PHP or Apache are always 644 (standard umask 22 I guess), so why the files created from php-gd having other permissions?
Is there any way to change it?
Kind regards and thanks in advance,
Neo
I noticed that if I create an image using the function imagejpeg/imagepng the permissions of such file are always set to 600.
This is in most cases no problem if the Apache and PHP are running from the same user (Apache) but on several server (CGI ??) this files are no more readable.
All other files created or copied from PHP or Apache are always 644 (standard umask 22 I guess), so why the files created from php-gd having other permissions?
Is there any way to change it?
Kind regards and thanks in advance,
Neo