Category Archives: PHP

Proper Image Resizing for WordPress

Update: Due to lack of time and interest (on my part), I am no longer maintaining JSSpamBlock or ImageScaler. WordPress has a cool WYSIWIG editor that lets you easily resize images by dragging the corner around. The problem is that … Continue reading

Posted in PHP, WordPress | Leave a comment

Endless Google Search

April 2009 Update: Originally, I had an live example of this running. However, the Google API doesn’t seem to work any more (it was discontinued over two years ago). In any case, there are better examples online now. Try Live … Continue reading

Posted in PHP, Web Apps | Leave a comment

A simple diff algorithm in PHP

A diff algorithm in its most basic form takes two strings, and returns the changes needed to make the old string into the new one. They are useful in comparing different versions of a document or file, to see at … Continue reading

Posted in PHP | 26 Comments