sqlite_factory() behaves similarly to sqlite_open() in that it opens an SQLite database or attempts to create it if it does not exist. However, a SQLiteDatabase object is returned rather than a procedural resource. Please see the sqlite_open() reference page for usage and caveats.
See also sqlite_open() and sqlite_popen().