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?
You can use:
CREATE TABLE IF NOT EXISTS ( /* definition */ )
Which is supported by SQLite (http://www.sqlite.org/syntaxdiagrams.html#create-table-stmt)