Monday, April 27th, 2009
In the Browser.php project John pointed out (in the comments) a terrible typo in the source. I imagine no one has encountered this before as it only effects v1 or v1.5 of Internet Explorer.
Typo updated and version 1.5 of Browser.php released: http://chrisschuld.com/projects/browser-php-detecting-a-users-browser-from-php/
Thursday, April 23rd, 2009
A while back I wrote a semi-popular post on removing images from a WordPress post — today I am revisiting it. The original solution used the_content() and the output buffer to remove the images out of the post. Now that I have used WordPress a bit longer and candidly had to use the solution again and thought “what was I thinking” I thought I would share the cleaner solution:
.
.
.
<?php echo preg_replace('/<img[^>]+./','',get_the_content()); ?>
.
.
.
Wednesday, April 22nd, 2009
I released v1.4 of the Browser.php project today to address a few features suggested by readers. This new release adds support for GoogleBot, Yahoo! Slurp, and the W3C Validator.
Check out version 1.4: http://chrisschuld.com/projects/browser-php-detecting-a-users-browser-from-php/