Home > Backend Development > PHP Tutorial > PHP determines whether the server supports SQLite database_PHP tutorial

PHP determines whether the server supports SQLite database_PHP tutorial

WBOY
Release: 2016-07-21 14:54:47
Original
1294 people have browsed it

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';
}

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/364559.htmlTechArticleI searched online and didn’t seem to find an answer to this question. Now Gonten will share this function. Although Very simple, but I think it will be useful to some friends. I didn’t know before...
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template