Benches Uncategorized

2

PHP, PDO, sqlite "could not find driver"

apple Verified

Imported from the Apple Support Forums via the Wayback Machine 🔗

I'm at a loss. In my PHP scripts, I'm using PDO to create/access a sqlite3 database. However, on new PDO( ... ), an exception is throw with the reason: could not find driver

Can anyone tell me how I can tweak PHP to get PDO/sqlite3 working?
Do I need to download something? I don't care if I have to build a module, but I'll be very, very upset [with Apple] if the solution requires me to rebuild PHP.

2 replies

Sign in or join Beachball Help to reply.

  1. 0

    Apple Support Community member

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    Hi,

    You are probably more apt to get feedback in the Apple Technologies/Developer forums here.
    http://discussions.apple.com/category.jspa?categoryID=162 Try posting there.

    Carolyn

  2. 0

    Apple Support Community member

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    PDO is horrible and there's no good reason to use it, but the instructions for its installation couldn't be easier to find

    http://www.php.net/manual/en/pdo.installation.php

    There's even several dozen Mac-specific tutorials out there if you look.