Posted by justinjohnson on Nov 11th, 2008
This is for the error: Fatal error: Cannot use string offset as an array in /includes/phoogle.php on line 137 , which just started popping up today.
I haven't had time to update the source files yet, but Michael Clark sent along the following fix that seems to work. I'll post an updated php file ASAP
PHP:
-
it's a minor patch -
-
add:
-
if(!trim($data)) return;
-
as the new first line of the characterData function
Posted by justinjohnson on Jan 1st, 2007
If you need to calculate distance in a web app, or maybe say something like "User1 lives approximately 2.1 miles from User2" then you've had to do the math to calculate distances between zip codes. It's a great pain. In the past I've always used this really great class from MicahCarrick called PHP Zip Code Range and Distance Calculation class v1.2.0 ,for an upcoming CakePHP app that I'm building I need to do something like this. So I took Mr. Carrick's class and converted it into a CakePHP Helper. Read on for code samples and instructions... Continue Reading »
Posted by justinjohnson on Dec 27th, 2006
If you're like me, you've fallen in love with CakePHP. It's a tight bit of code that's easy to use and once you have your application using it, easy to maintain and add new features. For my recent redesign of my freelance site www.systemsevendesigns.com I wanted to be able to display my 3 most recent blog posts on the homepage. Both sites run off of different databases, so how do we do it with Cake? (This post assumes you know a little bit about Cake, but is not too terribly complex. Cake newbies welcome!)
Continue Reading »