Reply To: FireStats – Top 40 php script (now with added charts)

#14757
Anonymous
Inactive

This is very, very cool, Steve. Nice work. I’ve been a big fan of Firefly for some time running it on several different platforms to see which I like best. I’ve settled on an old Dell that I’ve installed Ubuntu Server 6.06 LTS (Dapper Drake) that I’ve installed the LAMP option (pre-configured Linux, Apache, MySQL & PHP). I really like the visualization you’ve given to the library meta-data and would love to be able to see this for my library, but I’m having a problem.

I’ve copied the files to my apache2-default folder. When I hit the page, (http://SERVERIP/apache2-default/firefly.php). I get the name of the server at the top, the row of buttons (Tracks, Albums, Genre…), but then I get the following message:

Fatal error: Class ‘PDO’ not found in /var/www/apache2-default/functions.php on line 73.

Line 73 reads $dbh = new PDO ($DSN);
$DSN is “sqlite2:/usr/var/cache/mt-daapd2/songs.db”

It appears that my version of Apache PHP doesn’t know anything about SQLite. I’ve taken a look at PHP.INI for Apache, but don’t see anything obvious.

Any idea what I need to do to make this work? Any help would be appreciated.