PHP判断服务器是否支持SQLite数据库
Jun 13, 2016 am 11:37 AM
phpsqliteone timejudgmentDiscoverexistsupportdatabaseserveranswer
在网上搜了一下,好像没有发现有此问题的解答,现在Gonten就分享一下这函数,虽然很简单,但我想对一些朋友也用得着。
我之前也是不知道如何判断,PHP手册里也没有,就跑去bkJia论坛去问大侠了,得出了答案,测试OK!
判断函数是:extension_loaded(’sqlite’),支持时返回TRUE,不支持返回FALSE
如:
if (extension_loaded(’sqlite’)) {
echo ‘支持’;
}else{
echo ‘不支持’;
}
Statement
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

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article
How to fix KB5055523 fails to install in Windows 11?
3 weeks agoByDDD
How to fix KB5055518 fails to install in Windows 10?
3 weeks agoByDDD
Roblox: Dead Rails - How To Tame Wolves
4 weeks agoByDDD
Strength Levels for Every Enemy & Monster in R.E.P.O.
4 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
Roblox: Grow A Garden - Complete Mutation Guide
2 weeks agoByDDD

Hot Tools

PhpStorm Mac version
The latest (2018.2.1) professional PHP integrated development tool

Dreamweaver CS6
Visual web development tools

Dreamweaver Mac version
Visual web development tools

VSCode Windows 64-bit Download
A free and powerful IDE editor launched by Microsoft

Atom editor mac version download
The most popular open source editor
