PHP judges whether the server supports SQLite database _ PHP Tutorial

Source: Internet
Author: User
PHP checks whether the server supports the SQLite database. I searched the internet and found no answers to this question. now Gonten will share this function. although it is very simple, I want to use it for some friends. I did not know how to search for the function on the internet. it seems that I have not found any answers to this question. now, Gonten will share this function. although it is very simple, I want to use it for some friends.

I didn't know how to judge it before. I didn't know it in the PHP Manual. I ran to the bkJia forum to ask Daxia. I got the answer and tested OK!

The judgment function is extension_loaded ('sqlite '). If this function is supported, TRUE is returned. if this function is not supported, FALSE is returned.

For example:

If (extension_loaded ('sqlite ')){
Echo 'supported ';
} Else {
Echo 'unsupported ';
}

Bytes. I did not know before...

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.