Skip to content

Instantly share code, notes, and snippets.

@acidnine
acidnine / SQLite-PHP-quickstart.php
Last active January 24, 2025 05:55 — forked from bladeSk/SQLite-PHP-quickstart.php
SQLite3 PHP Quickstart Tutorial
<?php
// https://gist.github.com/bladeSk/6294d3266370868601a7d2e50285dbf5
// This file walks you through the most common features of PHP's SQLite3 API.
// The code is runnable in its entirety and results in an `analytics.sqlite` file.
// Create a new database, if the file doesn't exist and open it for reading/writing.
// The extension of the file is arbitrary.