While configuring one of my clients RoundCube installation in combination with Plesk, it would work almost OK, except that when sending mails RoundCube would hang at the spinner with “Sending message…”. After some digging it turns out that the Plesk-bundled PEAR module directory was before the RoundCube bundled PEAR modules directory. Both contain Mail_Mime, but… Continue reading RoundCube email hangs on “Sending message…”
Category: PHP Programming
Fixing the Apache “unable to include…” localised errors
Apache includes a nice feature that displays localised errors. This makes use of Server Side Includes (SSI). When you use PHP and have it also parse .html documents, your localised errors are broken. In fact, because the initial error will generate new errors, it becomes a mess. You typically see this in your error log:… Continue reading Fixing the Apache “unable to include…” localised errors
Array sorting but without articles
Sometimes you want to sort an array in PHP, but exclude certain words. I once needed this to sort a list of artists and bands. It is very common for bandnames to have articles in front of them. When sorting those, it feels more natural to leave those words out, so that “The Doors” would… Continue reading Array sorting but without articles