Chris Schuld's Blog

personal musings on the composition of software

Archive for the ‘PHP’ Category

Posted by Chris Schuld 3 COMMENTS

Version 1.6 of Browser.php has been released with a lot of updates: http://chrisschuld.com/projects/browser-php-detecting-a-users-browser-from-php/

Categories: PHP
Posted by Chris Schuld ADD COMMENTS

For those of you who detect Opera 10′s user agent, the Opera team has provide some “fun” for all of us. In my Browser project I started getting feedback that it was broken. At the 10,000′ level, it was defintely broken because the Browser project was returning version 9.8 for Opera version 10. This is [...]

Categories: PHP
Posted by Chris Schuld 1 COMMENT

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/

Categories: PHP
Posted by Chris Schuld 11 COMMENTS

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 [...]

Categories: Featured, PHP, WordPress
Posted by Chris Schuld ADD COMMENTS

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/

Categories: PHP
Posted by Chris Schuld ADD COMMENTS

Based on a comment on the Browser.php page I added support for the iPod today. I opted to place both the iPhone and iPod as browsers even though they are likely using the same instance of Safari. Additionally I added support for the iPod and iPhone as platforms. Thanks for the comments; enjoy!

Categories: PHP
Posted by Chris Schuld ADD COMMENTS

The browser detection project in php (Browser.php) has been updated to version 1.2 based on suggestions I received in the comments. The new version is available for download in the project pages. Thanks to all those who have emailed and commented on the script.

Categories: PHP
Posted by Chris Schuld ADD COMMENTS

I updated the Browser.php class today to detect Google’s Chrome Browser. Additionally, thanks to an idea from Daniel ‘mavrick’ Lang, I added isBrowser($browserName) as a function to version 1.1. Visit the Browser.php class page today to grab the update! Interested in a PHP4 version? Daniel is maintaining a version for PHP4. Example Usage: 1 2 [...]

Categories: PHP, Web Development
Posted by Chris Schuld 7 COMMENTS

A few people have contacted in the past about what I did to get IDs to work on Peter’s Script over at vulgarisoips.com (see the original post here). Peter’s script works great; but for my needs I had to add an ID to the suggestion as a way to relate the selected value back to [...]

Categories: PHP, Web Development
Posted by Chris Schuld 3 COMMENTS

In an attempt to add the PECL Upload Progress package, I received the following error: [root@zebra cbschuld]# pecl install uploadprogress-beta downloading uploadprogress-0.3.0.tgz … Starting to download uploadprogress-0.3.0.tgz (4,677 bytes) …..done: 4,677 bytes 3 source files, building running: phpize sh: phpize: command not found ERROR: `phpize’ failed Hmmm, it turns out I never added the package [...]

Categories: Fedora, PHP

About Chris

Chris Schuld

Thank you for visiting my website. I use this site for a myriad of things: maintaining software I have open sourced, connecting with my readers and friends and documenting all of this little things "I wished I would have written down." You can read more about me or contact me.


thanks for visiting... happy coding

Recent Comments