Category Archives: Development

These articles are about development, web-based or otherwise.

Backup Your MySQL Database

There are times when it is necessary to backup your database. It should be considered good practice to occasionally backup your database for no other reason than to have a good backup sitting around. Data corruption and data loss are no … Continue reading

Posted in Development | Tagged , , , , , , | Leave a comment

Using Dropbox as a Repo: A Simple Cheat Sheet

Many people use Dropbox as a git repository. And why not? It’s compatible across many different platforms, a secure cloud storage service, and easy to setup and begin using immediately. I use it the most when switching between operating systems … Continue reading

Posted in Development | Tagged , , , , , , , , , , , , , , , , , , | 1 Comment

Parse an Array as a String with PHP

Recently I found myself needing to quickly parse an associative array as a string to use in a logging function. I wanted minimal lines and to keep it simple. Using two PHP functions, http_build_query() and str_replace(), and a little fiddling … Continue reading

Posted in Development, PHP | Tagged , , , , , , , , , , , , , , , | Leave a comment

Using the Directory Iterator Class for Log Files

My favorite use of the Directory Iterator class is cycling through a logs directory. Sometimes I use it when I have a huge directory full of things I need to get a quick look at. Setting up the class to … Continue reading

Posted in Development, PHP | Tagged , , , , , , , , , , , , , , , , , , , | Leave a comment

Count Versus Empty

This post is going to explore the reasoning behind using the empty() function over the count() function when doing tests on arrays. When working with any programming language, you are going to do a lot of work with iteration. Looping … Continue reading

Posted in Development, PHP | Tagged , , , , , , , , , , , , , | Leave a comment