Can I use php's fwrite with 644 file permissions?

Posted by filip on Stack Overflow See other posts from Stack Overflow or by filip
Published on 2010-05-19T20:35:16Z Indexed on 2010/05/19 20:40 UTC
Read the original article Hit count: 170

Filed under:
|
|
|

I am trying to set up automated .htaccess updating. This clearly needs to be as secure as possible, however right now the best I can do file permission-wise is 666.

What can I do to setup either my server or php code so that my script's fwrite() command will work with 644 or better? For instance is there a way to set my script(s) to run as owner?

© Stack Overflow or respective owner

Related posts about php

Related posts about file-permissions