Php ile verimli sqlite kullanıyorum

0 Cevap php

I'm porting over a small php app to use sqlite, and this is the first time that I use sqlite with php and its been a while since i last coded something with php(it was php4 by the time). The trouble i'm having right now is that apparently with sqlite you need to call the sqlite3 object several times since it apparently doesnt establish a permanent connection with the database, so my code right now is filled with

$db = new SQLite3('test.db');

kodu her bir fonksiyonu. Bu verimli? Bunu yapmanın daha iyi ve temiz bir yolu var mı?

ben o app kök kullanarak gerektiği zaman / dir içeren bu iç test.db aramaya çalışır functions.php / include söylemek içinde sqlite kullanmak eğer ben yaşıyorum diğer konudur. ben bu verimli nasıl düzeltebilirim ki?

0 Cevap