18 Feb 2009

chmod 777 makes my blood boil

Written by Brian Teeman
rage

I don't know why but in the last few weeks I have seen a growing number of extension developers write code like this.

if (!is_dir($dstdir)) {
mkdir($dstdir);
chmod($dstdir, 0777);
}

It is hard enough educating users not to do this without extension developers doing it for them.

There is no need ever to chmod 777 anything!!

blog comments powered by Disqus

About Brian Teeman

  • As a co-founder of Joomla! and OpenSourceMatters Inc I've never been known to be lacking an opinion or being too afraid to express it.

    Despite what some people might think I'm a shy and modest man who doesnt like to blow his own trumpet or boast about achievements.

    But it seems that no blog exists without an "About" page so rather than talk about what an amazingly great guy I am and list all the things I've achieved (and failed at) in life from my Cycling Proficiency Test in 1976 to winning an award for the "UK Individual Contribution to Open / Source" in 2005 here are some links.

    {...}