当前位置:网站首页>How to change php INI file supports PDO abstraction layer
How to change php INI file supports PDO abstraction layer
2022-07-06 10:31:00 【Yisu cloud】
How to change php.ini File support pdo Abstraction layer
This article introduces “ How to change php.ini File support pdo Abstraction layer ” Knowledge about , During the operation of the actual case , Many people will encounter such difficulties , Next, let Xiaobian lead you to learn how to deal with these situations ! I hope you will read carefully , Be able to learn !
Method :1、 Open profile “php.ini”;2、 lookup “pdo_firebird”、“pdo_oci”、“pdo_odbc”、“pdo_pgsql” etc. PDO Related configuration information , Put the semicolon in front of the configuration item “;” Remove ;3、 restart Apache The server that will do .
The operating environment of this tutorial :windows7 System 、PHP7.1 edition 、DELL G3 The computer
PDO What is it?
PDO yes PHP Date Object(PHP Data objects ) For short , It is PHP A lightweight..., defined for accessing a database 、 A consistent interface , It provides a data access abstraction layer , So no matter what database you use , You can query and obtain data through the same function , Greatly simplifies the operation of the database , And can shield the difference between different databases .
PDO Is with the PHP5.1 Version released together , Use PDO It is very convenient to develop cross database programs , And the migration between different databases , at present PDO Supported databases include Firebird、FreeTDS、Interbase、MySQL、SQL Server、ODBC、Oracle、Postgre SQL、SQLite and Sybase etc. .
With PDO You don't have to use it anymore mysqli_* A series of functions , Just use PDO The method in can operate the database .
Turn on PDO
PDO Is with the PHP5.1 Together with , Default included in PHP5.1 in . because PDO need PHP5 Support for core object-oriented features , Therefore, it cannot be PHP5.0 In previous versions .
By default ,PDO stay PHP Medium is on , But to enable support for a database driver , Corresponding configuration operations are still needed .
With Windows Take the system as an example , In profile php.ini In the relevant PDO The relevant configuration information is as follows :
;extension=pdo_firebird ;extension=php_pdo_mysql.dll ;extension=pdo_oci ;extension=pdo_odbc ;extension=pdo_pgsql ;extension=pdo_sqlite
Tips : To open the corresponding configuration, you only need to remove the semicolon in front of the configuration item ;, And then restart Apache The server can .
Verify whether the relevant configuration is successfully enabled , Just execute phpinfo() Function is OK , Search the output page for the name of the configuration , If it exists, it indicates that the opening is successful , As shown in the figure below :
“ How to change php.ini File support pdo Abstraction layer ” That's all for , Thanks for reading . If you want to know more about the industry, you can pay attention to Yisu cloud website , Xiaobian will output more high-quality practical articles for you !
边栏推荐
- PyTorch RNN 实战案例_MNIST手写字体识别
- text 文本数据增强方法 data argumentation
- Ueeditor internationalization configuration, supporting Chinese and English switching
- Complete web login process through filter
- 安装OpenCV时遇到的几种错误
- C miscellaneous shallow copy and deep copy
- C miscellaneous dynamic linked list operation
- 保姆级手把手教你用C语言写三子棋
- MySQL35-主从复制
- Bytetrack: multi object tracking by associating every detection box paper reading notes ()
猜你喜欢
Unicode decodeerror: 'UTF-8' codec can't decode byte 0xd0 in position 0 successfully resolved
Routes and resources of AI
Adaptive Bezier curve network for real-time end-to-end text recognition
MySQL combat optimization expert 02 in order to execute SQL statements, do you know what kind of architectural design MySQL uses?
ByteTrack: Multi-Object Tracking by Associating Every Detection Box 论文阅读笔记()
13 医疗挂号系统_【 微信登录】
Emotional classification of 1.6 million comments on LSTM based on pytoch
Security design verification of API interface: ticket, signature, timestamp
Record the first JDBC
Introduction tutorial of typescript (dark horse programmer of station B)
随机推荐
Bytetrack: multi object tracking by associating every detection box paper reading notes ()
Southwest University: Hu hang - Analysis on learning behavior and learning effect
Redis集群方案应该怎么做?都有哪些方案?
How to make shell script executable
MySQL32-锁
Security design verification of API interface: ticket, signature, timestamp
Texttext data enhancement method data argument
Sed text processing
Preliminary introduction to C miscellaneous lecture document
MySQL real battle optimization expert 11 starts with the addition, deletion and modification of data. Review the status of buffer pool in the database
Notes of Dr. Carolyn ROS é's social networking speech
16 医疗挂号系统_【预约下单】
Ueeditor internationalization configuration, supporting Chinese and English switching
Case identification based on pytoch pulmonary infection (using RESNET network structure)
MySQL实战优化高手10 生产经验:如何为数据库的监控系统部署可视化报表系统?
Vscode common instructions
软件测试工程师必备之软技能:结构化思维
① BOKE
Super detailed steps to implement Wechat public number H5 Message push
Mysql36 database backup and recovery