I need my PHP app to be able to create an SQLite table but only if it doesn\'t already exist. How should I go about it?
CREATE TABLE IF NOT EXISTS ...
You can use:
CREATE TABLE IF NOT EXISTS <name> ( /* definition */ )
Which is supported by SQLite (http://www.sqlite.org/syntaxdiagrams.html#create-table-stmt)
Use IF NOT EXISTS.