In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-25 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/03 Report--
Editor to share with you how to set or change the php extension extension_dir, I believe most people do not know much about it, so share this article for your reference, I hope you can learn a lot after reading this article, let's go to know it!
Extension_dir, as its name implies, is the directory where the php extension is placed. For example, mine is: extension_dir= "D:\ ZZphpserver\ php\ ext". When I want to add a redis.dll extension, I don't need to write the full path, such as D:\ ZZphpserver\ php\ ext\ redis.dll, just write extension=redis.dll.
Php extends extension_dir settings or changes
; Directoryinwhichtheloadableextensions (modules) reside.
; http://PHP.net/extension-dir
Extension_dir= ". /"
; Onwindows:
Extension_dir= "D:\ ZZphpserver\ php\ ext"
; Directorywherethetemporaryfilesshouldbeplaced.
; Defaultstothesystemdefault (seesys_get_temp_dir)
; sys_temp_dir= "/ tmp"
The method of adding extended Library extension_dir for PHP under Linux
Edit the php.ini document, create a directory for extension_dir, and copy the compiled extension file to extension
Change extension_dir= ". /" to
The copy code is as follows:
Extension_dir= "/ usr/local/php5/lib/php/extension"
In the add extension library location of php.ini, set the extension library to add.
Add extension=ftp.so
Php extension failed to load issu
When modifying php.ini, there will be some minor problems that cause the extension to fail to load.
For example, when php_mySQL.dll is clearly enabled in php.ini, but when running the project, it is reported incorrectly that it does not support php_mysql. This must be because the system cannot find the file php_mysql.dll.
First check whether the path of extension_dir in php.ini is correct and pay attention to the direction of the slash
Add D:\ php5.5.38 and D:\ php5.5.38\ ext to the system variable
Then check the configuration in apache
If the configuration is correct but the error is still reported, and the loadedconfigurationfile in the following figure is not shown
Run phpinfo.php
The above is all the content of the article "how to set or change php extension extension_dir". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!
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.