Today I discovered something cool: a PHP interactive shell, sort of like python/ruby’s. Users were telling me about a weird error in one of the apps i work on that I tracked down to resulting in a PHP warning “Message: strstr() [function.strstr]: Empty delimiter.” I suspected it was because I was calling strstr() with an empty string for the second parameter. I couldn’t be sure though until I wrote some throw away code. Instead of writing the code though I did a quick Google search and found this awesome PHP interactive shell. Just install and call
php-shell.sh
from the terminal. It’s pretty easy to use, and right away I was able to tell that the strstr() error was in fact because the second parameter was empty.
Design
I read an interesting comment with a very cool quote recently:
Having done some design work recently, I must say this is very true. It’s so important that the entire user experience be thought through, not just how to make the design look pretty with gradients and drop shadows (although this is important too)…