I recently attended the Midwest PHP conference and it was a truly great experience. I went last year and while the location changed this year the quality of the conference was right on par. This year it took place at the University of St. Thomas (Minneapolis Campus) which proved to be a perfect venue for […]
Posts in category PHP
Throughout development many of us use the built-in error_log() function quite a bit. I know I sure do when I am debugging models, controllers, and the such but don’t you hate it when you want to write the contents of an array or object to the error log? The error_log() function only accepts a string […]
Are you using an object oriented approach with PHP and finding that your memory usage is going through the roof with the more classes that you add? PHP’s autoload() function enables you to automatically load classes when they are used which will greatly reduce the overhead of your application. In addition to the basics of […]
We have all heard the term “SQL Injection” before which is loosely defined as a code injection technique that exploits a security vulnerability in the database. So how do we protect against these types of attacks? Sanitize all incoming data that is going to be used in a database. There are a lot of good […]
Here are a couple functions I threw together to help with date formatting. One converts an integer month to a string while the other adds ordinal suffixes to day values. The function calls should be pretty self explainatory but if you have questions please leave them in the comments here or shoot me an email.