Top 5 PHP Regular Expressions for Web Developers
Monday, April 12th, 2010 | PHP | 0 commentsThere’s no doubt about it, regular expressions are flippin’ awesome. Here, I’ve compiled a list of five user-defined PHP functions that I use regularly when developing back-end applications. All of these functions make use of...
Set Elements to Equal Heights with jQuery
Sunday, April 11th, 2010 | jQuery | 0 commentsHere’s a quick jQuery plugin I put together for equalizing the heights of multiple elements. You give the plugin a list of elements, jQuery then loops through the specified elements, finds the tallest, and sets the height of each element to the...
Find and Replace with MySQL
Sunday, April 11th, 2010 | MySQL, PHP | 0 commentsA long long time ago, when dinosaurs roamed the earth, I had a client that had written all of her pages’ text in Microsoft Word, and pasted them directly into her content management system. This resulted in over 50 pages of content that would...
Getting Started With mod_rewrite
Saturday, April 10th, 2010 | .htaccess | 0 commentsWhat is mod_rewrite? First of all, let’s get things straight: mod_rewrite is your friend. It is also an Apache module that rewrites URL’s at the server level. If you’re reading this, I’m going to assume you’ve already...
Center an Element Horizontally and Vertically
Friday, April 9th, 2010 | CSS, HTML | 0 commentsThis one is an oldie but a goody. Using basic HTML/CSS we can position an element directly in the center of the page. Here are the steps to perfectly centering an element: Absolutely position the element Position the element 50% from the top, 50%...
Making AJAX Requests with jQuery
Thursday, April 8th, 2010 | AJAX, jQuery | 0 commentsMaking an XMLHttpRequest (AJAX request) enables JavaScript code to make asynchronous HTTP requests to the server. Creating the XMLHttpRequest object via standard JavaScript quickly turns into a lengthy bit of code. This is where JavaScript’s...