PHP Tutorial : Chmod file permissions

Did you encountered a script installation or something like that which bothers you with changing file permissions? You can do that via a FTP client or just with chmod (change file mode) function in php programming language like this:

<?php
chmod("filename", 0777);
//or

chmod("filename", 644);
?>
This entry was posted in Basic PHP and tagged , , , , , . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>