jcorry's blog

similar_text()

I found a new function! PHP's similar_text().

It takes two strings as arguments and returns an integer representing the number of characters they have in common, very simple...but very useful.

I am using it for a project where I have Joomla articles in a database that need to be updated according to values that are found in XML files. Each article in Joomla's jos_content table has a corresponding XML file on a server somewhere, there is one master XML file that contains a collection of nodes for the collection of XML files that I'm working with, along with tags and attributes that allow me to identify them.

So, how do I match the article title in my jos_content table to the XML file I'm going to use to update it's article's contents?

Reentry

6K: At launch on Haleakala in the Sensor 610...Maya happily standing by - 2003 photo by Don Weiss6K: At launch on Haleakala in the Sensor 610...Maya happily standing by - 2003 photo by Don WeissMy first steps into aviation and first piloting experience were as a foot-launch pilot.

I started flying hang gliders in 1999 on Haleakala, the 10,000' volcanic mountain on the island of Maui. At the time, as with so many things, I didn't really appreciate how perfect it all was: it was 30 minutes to the LZ/gathering point and another 25 to launch, conditions were consistently soarable, large areas of the island were accessible to us, the beach was always a great 'XC' goal.

It was a great environment and community for learning to fly. I excelled.