Author: Jeremy
-
PHP script to send test emails on a schedule to make sure you are able to receive email
Ever wondered if your email was actually working? I’ve had numerous people over the past few years wonder the same thing. Ideally you would use a consistent, dependable email service provider (think Gmail, Hotmail, Yahoo!, etc.). But sometimes that isn’t an option. If you think you might be receiving email intermittently or not at all,…
-
My New Pet Orb Weaver Spider
As I was mowing the grass in my back yard two weeks ago, I was startled by a huge spider that crept out from under a board on our fence. I wanted to take some pictures of it but after I finished mowing it was gone. Today, however, the same spider (I assume) kindly relocated…
-
Shorten URLs with Zend Framework and bit.ly
This function uses version 3.0 of the bit.ly API. You’ll need to register for an account with them if you don’t already have one. Then you can retrieve your API key and begin using it immediately. function bitlyShorten($url) { $client = new Zend_Http_Client(‘http://api.bit.ly/v3/shorten’); $client->setParameterGet(array( ‘longUrl’ => $url, ‘login’ => ‘xyz’, ‘apiKey’ => ‘xyz’ )); $response…
-
Outsourced Pest Control
I spotted this creepy spider while I was getting the mail this evening. Scary! Anyone know what type of spider this is?
-
Force Zend Framework to use the index controller by default
Everyone wants pretty URLs these days—both for convenience and to optimize for search engines. So having URLs with unnecessary information is a major no-no. Over the past year I’ve been slowly absorbing the Zend Framework and its MVC pattern. Historically, projects I created required the user to specify the index controller like so: http://www.mysite.com/index/page …where…