Home > php教程 > php手册 > PHP判断服务器是否支持SQLite数据库

PHP判断服务器是否支持SQLite数据库

WBOY
Release: 2016-06-13 11:37:19
Original
1897 people have browsed it

在网上搜了一下,好像没有发现有此问题的解答,现在Gonten就分享一下这函数,虽然很简单,但我想对一些朋友也用得着。

我之前也是不知道如何判断,PHP手册里也没有,就跑去bkJia论坛去问大侠了,得出了答案,测试OK!

判断函数是:extension_loaded(’sqlite’),支持时返回TRUE,不支持返回FALSE

如:

if (extension_loaded(’sqlite’)) {
echo ‘支持’;
}else{
echo ‘不支持’;
}

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 Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template