Category Archive: PHP
Posts about PHP
Recently I haven’t had time to bother with old versions of IE (less than 9), so I use the following PHP function to target IE 6, 7 and 8.
Nice lil slab of PHP to get the current URL. Useful for a wide variety of applications, nice one to have in the tool belt.
Quick snippet to get all user emails in WordPress.
Working with USP Pro involves a lot of $_FILES manipulation. I tend to forget how the array is structured, so I’m posting it here for ez reference.
Here is a PHP snippet for cleaning or sanitizing variables.
Here is a customized plug-n-play PHP script for reporting 404 errors via email. No editing required, just clean email alerts for each 404 error.
Here is how to redirect specific URL requests to a PHP script for further processing, etc. Very useful for monitoring HTTP activity, logging errors, and more.
Quick tip for securing your PHP includes, place them above your web-accessible root directory.
Twitter’s constant changes make it necessary to update techniques for otherwise simple tasks such as displaying your Twitter count via PHP.
Here’s how to filter content in WordPress’ header.php template file using PHP.
Here is another technique for combining multiple CSS stylesheets into a single, compressed file.
Here is a simple PHP script that will combine all CSS files (stylesheets) in a given directory. Delivering one CSS file with your web pages is much faster than delivering multiple files because there are fewer HTTP requests involved.