Tag Archives: code

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

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

Good Naming Conventions

Maintaining good naming conventions aren’t just good programming practice, it also shows common courtesy for fellow programmers and yourself. You may be asking yourself “Why is this so important?” Well one day, hopefully, you will be working with other programmers … Continue reading

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