Monday, July 30th, 2007
Like Scott, I spent last week in Portland attending OSCON. The first session I went to was a joint talk given by Rasmus Lerdorf and Thomas Sha. Rasmus is a Yahoo! software architect and the creator of PHP. Thomas is the head of YUI development. They spoke about strategies for helping Javascript and PHP developers work effectively together. They covered data exchange between the two languages, XSS and XSRF security best practices, and gave a great introduction to the YUI Javascript library for PHP developers wary of front-end coding.
However, what interested me most was the ongoing commentary Rasmus interjected about ...
http://raven-seo-tools.com/blog/2976/seriously-keep-it-simple-stupid
Monday, June 25th, 2007
Nick Halstead is running a PHP contest on his blog and offering a free copy of Zend Studio to the winner. It’s a wonderfully simple challenge that doesn’t require arcane PHP knowledge or experience with any particular framework. Instead, you’re forced to rely on your own problem solving skills. Entries will be judged based on “efficiency and elegance of the solution.”
I just submitted my entry. You should, too.
http://raven-seo-tools.com/blog/2972/php-programming-contest
Thursday, April 26th, 2007
In my last post I talked about the PHP Growl notification class I wrote. A few readers emailed and asked to see a larger, working example of how to use the code, so I’ve written a plugin for Shaun Inman’s popular Mint software. Growl Pepper will notify you whenever certain events happen on your website. For example, when you get a new referral or a unique visitor. You can also setup custom alerts that will notify you anytime someone visits a specific page. It’s a fun plugin that lets you see your stats as they happen. Here’s a screenshot of ...
http://raven-seo-tools.com/blog/2965/growl-pepper-plugin-for-mint
Thursday, April 26th, 2007
Most websites have alert systems built in that can notify you whenever something goes wrong – a database crash or Apache error for example. Often times they’ll send an email, save the problem to a log file, or even send an instant message. I’ve seen some systems that will page your cellphone. Most of the sites I build notify me via RSS.
All these methods are perfectly fine and have their place, but I wanted to tie my websites into the Growl notifier on my Mac. This appeals to me for a couple reason. First, it’s more immediate than email or ...
http://raven-seo-tools.com/blog/2964/send-growl-notifications-using-php
Wednesday, April 18th, 2007
Tired of processing RSS/Atom feeds in your app? Today Google announced their new Google AJAX Feed API that will do the parsing (and caching!) for you. It works great for Javascript developers, but what if you want to use a server side language like PHP? Here’s a quick (and totally unauthorized) hint to let you do so.
Digging through Google’s Javascript code, we find that they make a request to the Google mothership to parse a feed using this url:
http://www.google.com/uds/Gfeeds?callback=google.feeds.Feed.RawCompletion&context=0&num=10&hl=en&output=xml&q=URL_GOES_HERE&v=1.0&nocache=0
In theory, just insert a link to the feed you want parsed into their url and voila! Sort of.
The feed data is ...
http://raven-seo-tools.com/blog/2962/how-to-parse-rss-feeds-with-googles-feed-api
Monday, February 19th, 2007
Last month I blogged about the release of PHP-AWS – our open source Amazon Web Services library. Today I want to highlight the S3 File Manager I recently added to the project. It makes debugging your S3 code much easier. Not only does it let you browse your bucket contents, download and delete files, but it’s also an excellent example of how to use the S3 class. The script is self-contained, so it’s easy to drop into any of your projects. Just open the file in your browser, fill in your Amazon info, and you’re all set.
Tuesday, January 30th, 2007
Today I’m happy to announce a new open source project from Sitening.
PHP-AWS is a collection of PHP classes that let you tap into the power of Amazon’s Web Services platform. This is the same codebase we used to build Basejumpr. It lets us offer our users unlimited storage space and run as many servers as we need in the cloud.
PHP-AWS is hosted in Google Code and released under the MIT License, which means you’re free to use this code in any way you wish. However, we do ask that you contribute back any improvements you make so the community can ...
Thursday, June 1st, 2006
It’s no secret that I don’t like Ruby on Rails. My friends know it. My co-workers definitely know it. And I guess now you do, too. Ruby itself is a fine language, and there are lots of great web apps running on Rails, but the framework just doesn’t fit with my development style. I like to keep things simple. I’m too much of a control-freak to sell my soul to a particular framework.
That said, many of the ideas behind Ruby on Rails are spot on. I particularly like how well it abstracts database queries into separate objects for each table. ...
http://raven-seo-tools.com/blog/2921/getting-real-with-databases-in-php
Wednesday, May 24th, 2006
Here’s a quick tip that might save the PHP developers out there some time. (It would have saved me thirty minutes of debugging if I had know this earlier.)
When you export an Excel file as a CSV in Office for Mac, Excel saves the file using CR line breaks instead of the standard LF (Unix) or CRLF (Windows) endings. CR’s will break PHP’s fgetcsv() function. So, before you attempt to parse the CSV file, make sure you convert it to the appropriate line endings.
More info about issues detecting line endings in PHP is available here.
http://raven-seo-tools.com/blog/2919/excel-line-endings-break-php
Wednesday, February 22nd, 2006
Here's an easy javascript tip that'll make looking up PHP functiosn even faster.
http://raven-seo-tools.com/blog/2907/create-a-php-documentation-bookmarklet