WordPress Multisite: a Brief Guided Tour

Installing WordPress Multisite isn’t the hard part – it’s getting your head around how to use it, especially if you’ve mostly been using single installs. In this quick tour I want to give you some pointers on how to use your new installation, and how it differs from single WordPress installations. New Role: The Super … Read more

How to setup WordPress as a Multisite Network (formerly known as WPMU)

Installing WordPress Multisite can give your site the benefit of being part of a network. I use this feature to spawn multiple installations that live on the same domain. It makes my life so much easier to update several WordPress instances at once. It’s also a great way of being logged into several individual sites … Read more

How to create a Cron Job in WordPress: Teach your plugin to do something automatically

Creating a recurring automatic function in WordPress used to be one of the most difficult things for me to understand. Several articles out there explain how to do it, yet I always forgot the concepts when the next cron job job came along. Right now it’s in my head, and that’s the time when I … Read more

How to send an email in PHP

Many complex things are extremely simple in PHP – sending mail is one of them. Here’s how: // components for our email $recepients = ‘you@somewhere.com’; $subject = ‘Hello from PHP’; $message = ‘This is a test mail.’; // let’s send it $success = mail($recepients, $subject, $message); if ($success) { echo ‘Mail added to outbox’; } … Read more

How to test if a Shell Command can be executed in PHP

Before we execute a shell command from PHP it’s a good idea to test if the server will respond to it. We can do this by making use of the empty() function. The following example consists of a helper function you can call before executing the command in question. Then we call it with the … Read more