How to Reset your MediaWiki Admin Password

So for some strange reason, it just took me a good 20minutes to find an article on Google to tell me how to reset the Mediawiki admin password (because yes .. I forgot it). Some articles mentioned using phpMyAdmin to edit the users table directly, however the password is stored in a TinyBLOB format –...

How to Bootstrap PHP Code

So what the heck is this Bootstrap PHP thing anyway? Bootstrap means to load a small program that eventually calls the desired program into the computer, similar to an operating system being called by a BIOS program. The word bootstrap also has different meaning in different fields like science, medical,...

Adsense inline your WordPress Blog posts

I stumbled upon this very handy guide on how to insert an adsense ad unit after the first post on your wordpress blog. To do this you will need to be able to edit the template files, specifically the “index.php” file. The guide uses a simple PHP if statement to count the number of posts and...

PHP Dynamic Checkboxes

I noticed the lack of tutorials or articles when using checkboxes in a dynamic form, so I thought I’d post some code I used recently to manage deleting rows. The thing most people forget isthat the checkbox field name has to have a [] on the end as this tells PHP to use an array and not a normal...

Form Validation – HTML Tag stripping

This short article will talk about protecting your web forms from users who may try to exploit your website by entering in HTML into a text box. Validation is something all web coders should think about as it protects the end user from making mistakes and protects your website from malicious attacks. The...

Squirrelmail error You must be logged in to access this page

I came across a problem where squirrelmail kept reporting to me You must be logged in to access this page. I thought it was a cookie problem so I spent ages trying to debug PHP and apache. The problem was that the server didnt have IMAP installed. Squirrelmail is an IMAP client only. On debian do the...