On August 24, 2004 09:10 am, Adam Q wrote:
> Could we have SQLite DB creation "option" that creates the DB with a
> header that begins <?php? (SQLite DBs are close to normal text in the
> first 20 chars anyway... ) - either way, I'm going to do some testing
> of Ilia's create table option and see if I can get around it.

No, the reason is that my "solution" is a hack, arguably a very dirty hack 
that relies on the fact that the table structure in sqlite in stored as plain 
text rather then as binary data like the rest of the information inside the 
database file. This means that if this storage mechanism were to change this 
hack would stop working.

If you need to use this hack just make a wrapper function around sqlite_open 
that would create this table if it does not already exist, (you can check 
sqlite_master table for it's presense).

As far as making PHP do this automatically, I am definitely against this for 
the reasons mentioned above.

Ilia

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to