<?php
$db = sqlite_open("/path/to/database");
/* Execute 10 inserts via a single query */
$query = 'BEGIN;';
for ($i = 0; $i < 10; $i++) {
$query .= "INSERT INTO tbl VALUES(".$i.");";
}
$query .= "COMMIT;"
sqlite_query($query, $db);
?>