DBD-SQLite - Re: create database, check for table

Posted on Thu Feb 14 23:38:05 2008 by jpolache in response to 7107 (See the whole thread of 4)
Re: create database, check for table
Check for the file that represents the database. I guess that was to obvious for me to think of. OK, so the next step would be to create the database from within the script if it does not already exist. As far as I can tell, the way to create a SQLite database is to call the sqlite3.exe [DBNAME] from the command line. I could use a system call from within the script (system("sqlite3 [DBNAME]";) but how would I send .quit to stop the utility? Is there something else obvious I'm missing?
Direct Responses: 7112 | Write a response