Using AJAX to get city and state from zip code

This is something that I wrote a few years ago when I first started using AJAX type calls in my programs. It will allow you to enter a zip code, either 5 or 9 digit, and will load the city into a text field and state into a dropdown. If the city field [...]

Get post_meta for another post in Wordpress

For a site I'm rewriting I needed a way to get the meta data for a Wordpress post from outside the loop, and it seems that the functions that handle reading the meta data only work from within the loop. So I can up with this short little snippet of PHP code that gets [...]

PHP script to export MySQL database as tab delimited file

Found a short script today and thought others here might find it useful. It connects to your MySQL server and exports a table as a tab delimited text file. Great if you're trying to import your MySQL data into another program where normal SQL may not work.

Clearing out MySQL binary logs

Over the past few weeks WHM has been sending me emails that my server space was getting full. I guess 80% is the threshold for those emails. But it was creeping up so slowly that over the course of 8 or 10 weeks it had only gone from 80% to 82% which I [...]

How to reset your Wordpress password

Help! I've forgotten my Wordpress password!
Ever been there? Wordpress has a built in method to email you a new password, but what happens if it's been so long that you don't have access to the email address any longer? Or if you have too many email addresses and can't remember what address [...]