picasa plugin broken in php5
Posted: Thu Nov 12, 2009 7:54 am
My webmaster just upgraded from php4 to php5, and the picasa plugin started failing because it couldn't load the domxml extension. I did some research, and it appears the domxml extension was experimental in php4, and was not carried forward to php5.
So to fix my blog, I rewrote all of the xml parsing using expat, which I believe is almost always available in any version of php. The code isn't as pretty, but it is probably faster, and it should work on more server configurations.
The code can be retrieved from http://www.wreck.org/~greg/xmlParserFix ... sa.php.txt. However, this version also has all of my changes related to the thread at http://board.s9y.org/viewtopic.php?f=4&t=15918&start=15. If needed, I can provide separated diffs of the different changes. Garvin, can you put this into revision control (and review it)?
thanks,
greg
So to fix my blog, I rewrote all of the xml parsing using expat, which I believe is almost always available in any version of php. The code isn't as pretty, but it is probably faster, and it should work on more server configurations.
The code can be retrieved from http://www.wreck.org/~greg/xmlParserFix ... sa.php.txt. However, this version also has all of my changes related to the thread at http://board.s9y.org/viewtopic.php?f=4&t=15918&start=15. If needed, I can provide separated diffs of the different changes. Garvin, can you put this into revision control (and review it)?
thanks,
greg