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.
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.
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.
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).
Posted by atrasatti 5 years ago
Mobile Genius
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
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