CodeIgniter Forums
how to avoid changing permissions on file copy? - 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: how to avoid changing permissions on file copy? (/showthread.php?tid=53428)



how to avoid changing permissions on file copy? - El Forum - 07-23-2012

[eluser]jpganz[/eluser]
Hi!! I am using Codeigniter for make a copy of some stuffs.. right now I am making a copy of an image... still , the original image has permission 644, but after I copy, the copy gets the permissions 666... what u think I could do?? I need to have same permissions 644, any idea??

Thanks!


how to avoid changing permissions on file copy? - El Forum - 07-23-2012

[eluser]Aken[/eluser]
http://us3.php.net/manual/en/function.chmod.php


how to avoid changing permissions on file copy? - El Forum - 07-23-2012

[eluser]jpganz[/eluser]
Sorry for the question, I used chmod($file_url, 0644);