Home > Article > Backend Development > PHP determines whether the server supports SQLite database_PHP tutorial
I searched on the Internet and found no answer to this problem. Now Gonten will share this function. Although it is very simple, I think it will be useful to some friends.
I didn’t know how to judge before, and it wasn’t in the PHP manual, so I went to the bkJia forum to ask the heroes, and I got the answer. The test was OK!
The judgment function is: extension_loaded('sqlite'), which returns TRUE if supported, and FALSE if not supported.
For example:
if (extension_loaded('sqlite')) {
echo 'Supported';
}else{
echo 'Not supported';
}