Method name for calling Sqlite3 in PHP

Source: Internet
Author: User
Tags php sqlite3
PHP SQLite3 Extended Password encryption

With Wxsqlite3 in the Sqlite3 encrypted code finally compiled the PHP sqlite3 extension file, but the embarrassing thing came ... PHP statement, Sqlite3 set the password, change the password and other statements is what ah ... I can't seem to find it online.


Reply to discussion (solution)

Print_r (Get_extension_funcs ("sqlite3"));

Print_r (Get_extension_funcs ("sqlite3"));
Used but the output of a blank, but this sqlite3.dll because I compiled from the source code so at least build a database, query I still tried to use AH ...

If you hadn't loaded it, if it weren't for the wrong name

If you hadn't loaded it, if it weren't for the wrong name

$db = new SQLite3 (' test1.db ');
$sql 1 =
' CREATE TABLE User (username varchar (255), Password varchar (255)) ';
$db->query ($sql 1);
$sql 2 = ' INSERT into user (username, password) VALUES ("11111", "champs-elysees") ';
$db->query ($sql 2);
$re = $db->query (' select * from user ');
while ($row = $re->fetcharray ()) {
Print_r ($row);
}


This code can be executed there is no problem sqlite3 not loaded it? PHP.ini I wrote the name is Sqlite3 ah ... Is there anywhere else you can drop the extension name?

That is to say: your SQLite3 extension does not provide a discrete function that only provides the SQLite3 class
View the methods provided by SQLite3
Print_r (Get_class_methods (' SQLite3 '));
To view defined classes
Print_r (Get_declared_classes ());

That is to say: your SQLite3 extension does not provide a discrete function that only provides the SQLite3 class
View the methods provided by SQLite3
Print_r (Get_class_methods (' SQLite3 '));
To view defined classes
Print_r (Get_declared_classes ());

Oh oh oh, I changed the whole PHP into XAMPP, the integrated PHP read the results are the same .... Isn't sqlite3 an extension? I don't know why I put it in ext.

Thanks, boss.

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