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...