[phpsqliteadmin] Re: phpsqlite login

Richard Heyes wrote on 05/16/2004 06:43 PM:


>>So we have to use the dl('sqlite.so') command somewhere in the config.php
>>and voila, the program starts...
> 
> 
> Thanks for posting this info.

Maybe a thing like this would solve the problem:

if (!extension_loaded('sqlite'))
{
        dl('sqlite.' . (strstr(PHP_OS, 'WIN') ? 'dll' : 'so'))
        || die("Can't load SQLite module!\n");
}

---
Gyulus

Other related posts: