CodeIgniter Forums
Resized images created with 600 permissions - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: Resized images created with 600 permissions (/showthread.php?tid=40398)



Resized images created with 600 permissions - El Forum - 04-07-2011

[eluser]Vega[/eluser]
Hi my web host seems to have changed a setting on the server which means when images are created or resized using GD they are given permissions of 600 (instead of 644), meaning I am getting the "Forbidden" error message in the browser. I was wondering how I can change/override this?


Resized images created with 600 permissions - El Forum - 04-07-2011

[eluser]InsiteFX[/eluser]
php chmod

InsiteFX


Resized images created with 600 permissions - El Forum - 04-07-2011

[eluser]Vega[/eluser]
Thanks InsiteFX Smile ..(I just added: chmod($img_path.$img_name, 0644); near the end of captcha_pi.php for anyone else reading).