In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
This article mainly explains "how to set php.ini". The content in the article is simple and clear, and it is easy to learn and understand. Please follow the editor's train of thought to study and learn "how to set php.ini".
The method of setting php.ini: 1, decompress the downloaded php installation package; 2, find the php.ini-development configuration file and change the file to php.ini;3, and modify the configuration content.
This article operating environment: windows7 system, PHP7.4 version, DELL G3 computer
How to set up php.ini?
Set up the php.ini file in BAE
First, unpack the downloaded php installation package and open the folder, as shown in the figure.
To find the php.ini-development configuration file, the important step is to change the name of the file to php.ini
Open the file with an editor similar to Editplus, and open it with notepad. The format may be confused, as shown in the figure
And find it.
; extension_dir = ". /"; On windows:; extension_dir = "ext"
Change to
; extension_dir = ". /"; On windows:extension_dir = "E:/Apache Group/PHP/ext"
Add the extension function of php (all the extension functions are under the ext directory)
Please click to enter a picture description
Found; change the Off in http://php.net/short-open-tagshort_open_tag = Off to On, which means short tags are supported.
find
; extension=php_fileinfo.dll;extension=php_gd2.dll;extension=php_gettext.dll;extension=php_gmp.dll;extension=php_intl.dll;extension=php_imap.dll;extension=php_interbase.dll;extension=php_ldap.dll;extension=php_mbstring.dll;extension=php_exif.dll; Must be after mbstring as it depends on it;extension=php_mysql.dll;extension=php_mysqli.dll;extension=php_oci8.dll; Use with Oracle 10gR2 Instant Client;extension=php_oci8_11g.dll; Use with Oracle 11gR2 Instant Client;extension=php_openssl.dll;extension=php_pdo_firebird.dll Extension=php_pdo_mssql.dll;extension=php_pdo_mysql.dll;extension=php_pdo_oci.dll;extension=php_pdo_odbc.dll;extension=php_pdo_pgsql.dll;extension=php_pdo_sqlite.dll;extension=php_pgsql.dll;extension=php_pspell.dll;extension=php_shmop.dll
Turn on the corresponding functions according to the requirements, such as those that want to connect to the database, you can remove the semicolons in front of; extension=php_mysql.dll and; extension=php_mysql.dll to enable related functions.
Set time zone
; date.timezone =
Change to
Date.timezone = Asia/Shanghai Thank you for your reading, the above is the content of "how to set up php.ini". After the study of this article, I believe you have a deeper understanding of how to set up php.ini, and the specific use needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.