Tag php

Wednesday double post of doom…part 2

Here is the second post in my wednesday posting fest of terror….ok i’ll calm down. This one is concerned with using Joomla mailer, which in turn is based upon the PhpMailer class.

Add days, weeks, months etc to dates in PHP

As you probably know php gives you a nice date() function that allows you to get a date and format it using a vast amount of unix date strings. But what if you want to add/subtract days, weeks and months to a date? Marty, warm up the delorean…

Removing empty lines with preg_replace

Just a quick post today to mention something that will come in useful if you need to parse or handle large amounts of text and whitespace.

Joomla - Modules within modules

Today I discovered that Joomla modules can act like russian dolls! In that if the mood takes you, it is entirely possible to load and render a module inside another module.

Showing local times with PHP

Here’s a little snippet of PHP that will help anyone grappling with a project that involves (or will be used in) multiple timezones.