Archive for the ‘Programming’ Category

.htaccess Maintenance Redirect

In my line of work, I deal with a lot of people performing maintenance on their website. I often get asked how to put a redirect in place to a maintenance page or area. I get asked so much, in fact, I decided to post this on my blog. By…

Read More →

Alter WordPress’ Generator Tag

By default, WordPress adds a “generator” meta tag to your site header HTML. The content of the tag contains “WordPress” and the version you are running. For example: WordPress 3.1.3 With a simple edit of your theme functions.php file, you can either remove or alter this tag to add a…

Read More →

Pastebin.ca PHP API

In my boredom, I find I do a lot of things. Some of those things range from very silly to intense coding sessions. So, out of boredom tonight, I have built a script to use the Pastebin.ca API to make pastes remotely. Below you will find the code and an…

Read More →

Updating YUI for vBulletin 3.8

Note: I have also posted this at vbulletin.org In vBulletin 4, the developers recently upgraded the bundled YUI version to 2.9.0 from 2.7.0. Since vB 3.8 is EOL, I found a way to manually update the bundled YUI version. I’ve tested vB 3.8 with YUI 2.9.0 as much as I…

Read More →

[PHP] – Check if a URL is valid/exists

Hello folks. The following is a PHP function that will check a given URL to see if it’s valid, and check to see if it is responding (ie: returning Status: 200 OK).

Read More →