Entries Tagged as 'MySQL'

February 20, 2008

What goes around, comes around

I’m not a big believer in karma, but this week I experienced some karma-like effects. Two years ago for work, I developed code to protect wiki websites. Then I published it on my blog.
This weekend a software upgrade caused this protection code to stop working on our websites. I couldn’t find an answer. Then yesterday, [...]

August 16, 2006

Essential PHP Security

I recently finished reading Essential PHP Security by Chris Shiflett (O’Reilly). It was a good, quick read, and for me it was mostly a review of principles I had previously read on Chris’s blog. The main principles are filter input and escape output. Using separate arrays for each kind of data is a [...]

August 14, 2006

CSS Best Practices

Last month at the UPHPU meeting, Wade Shearer presented on CSS best practices. He’s one of the few programmers in the group that’s a designer first, and a programmer second, so he has unique insight into web design. Here are my notes:

Keep HTML free of presentational attributes
Write clean, semantic HTML
Use HTML tables semantically–for [...]

May 25, 2006

Password protecting MediaWiki with mod_auth_mysql

MediaWiki is the powerful software on which Wikipedia and many other sites are built. It does not, however, come with the option to password protect pages from being viewed. (It can password protect pages from being edited.)
If you need to setup a private, members-only wiki for internal use, here is how you can [...]