In all tutorials for some reason they start not with the creation of a database, but with the discovery of it, but how to actually create it?

if (!fs_exists(SQLITE_DB)) // Что делать? 

    1 answer 1

    SQLite automatically creates a database file when it is missing. Therefore, everyone starts with opening it without checking - when opening, the missing file will still be created by the engine. But there can be problems if there is not enough rights to create or the path is wrong.