Contact Lifestream



PHP quandaries - iconv och exif

I’m currently bugging my hosting company to compile and add support for iconv and the exif functions. We’ll see how that goes ..

In case anyone is wondering, I need the iconv() or similar for the NP_Related plugin. Maybe I can rewrite it with some function that I do have but I don’t see the big deal with compiling it. And I don’t know of any similar function in php. Except if you want to specifically encode / decode UTF8 to ISO-8859-1 in which case utf8_decode and utf8_encode could do the trick. Even if not having iconv seems like a big mistake.

<Edit> I changed the way the plugin converts strings to use the functions mentioned above intead of iconv. Seems to be working afaik. It’s good to have Related items up and running again. In fact I reworked the entire item page while I was at it and also added a printer friendly plugin. </edit>

As for EXIF, I know the functions have caused problems in the past, but for all that I know it has been sorted out by now. Obviously I need it for the Coppermine Gallery, even if this is by no means as pressing as getting iconv. The Coppermine team are working on stand alone functions to do the same job so in the end this might not matter if they could only deliver.

<Edit> Maybe after fixing this I can get some blogging done. The list of compulsory future stories is overflowing with inspiration. </edit>



OpenDNS

Use OpenDNS

Worthy Causes