dotMobimobiThinkingmobiForgemobiReadyDeviceAtlasgoMobi

Posted by seanboy 5 years 23 weeks ago

pic
 seanboy
mobiForge Newbie
Posts: 4
Joined: 5 years ago
[offline]

Hello,

I want to use php 5 with WURFL. What needs to be done with the wurfl-config.php file in order to make wurfl php 5 compatible?

Posted by atrasatti 5 years ago

pic
 atrasatti
dotMobi logo
Mobile Genius
Posts: 325
Joined: 5 years ago
[offline]

Hello,
the existing PHP Tools that you are referring to were developed for PHP4. PHP 5 has a few differences in the class management and this does not make it compatible. You will have to edit not only the configuration file, but also the class.

Here is a working version of my original library adapted to PHP5:
http://www.madagasgar.com/wurfl/

Also, there is a new library that is having a good success among the developers and this might be more friendly with PHP 5. It's called Tera-WURFL. Give it a shot.

Andrea Trasatti
http://trasatti.blogspot.com/
W3C Invited Expert

Posted by farenheit 4 years ago

pic
 farenheit
mobiForge Newbie
Posts: 3
Joined: 4 years ago
[offline]

If you want to be a real guinea pig, I've just released a completely revised package for handling the WURFL file. Its written entirely in PHP5, needs PDO and SimpleXML. It's a database implementation of the WURFL file. largely does what the old class did, except it's more for use in device management systems.

You can get it from: http://wurfl.madagasgar.com/ (need version 2).

Consider it beta release at present. I've found a few bugs with using it on my hosts server (some PDO issues that I can't seem to fix which I think is because my hosts have borked the PHP install - it works great on my desktop machine though).

Dave