在 Windows 中安装 imap
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/2370827/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
install imap in windows
提问by coder
回答by symcbean
I found the functions at here
我在这里找到了功能
No - the link you provided is the documentation for the functions.
否 - 您提供的链接是功能的文档。
I guess you are on a Microsoft Windows platform since you've tagged your question with 'windows' even though its nothing to do with GUIs or data window algorithms (in future it might be a good idea to be a bit more explicit, particularly when talking about installing software).
我猜您使用的是 Microsoft Windows 平台,因为您已经用“windows”标记了您的问题,即使它与 GUI 或数据窗口算法无关(将来,更明确一点可能是个好主意,尤其是当谈论安装软件)。
The imap extension comes as standard with the MSWindows PHP installation. You just need to enable it in your php.ini
imap 扩展是 MSWindows PHP 安装的标准配置。你只需要在你的 php.ini 中启用它
Run
跑
<?php phpinfo(); ?>
To find out what ini file your installation is using. The default php.ini should already contain a line to load the extension but commented out:
找出您的安装使用的 ini 文件。默认的 php.ini 应该已经包含一行来加载扩展但注释掉了:
;extension=php_imap.dll
Change this to (or add):
将此更改为(或添加):
extension=php_imap.dll
Note that if you are running php within a webserver or as fastcgi, you'll need to restart it for the change to take effect.
请注意,如果您在网络服务器中或作为 fastcgi 运行 php,则需要重新启动它以使更改生效。
回答by Anjani Barnwal
just change some line in your php.ini file and problem is solve.
只需更改 php.ini 文件中的某些行,问题就解决了。
;extension=php_imap.dll
;扩展= php_imap.dll
to
到
extension=php_imap.dll
扩展名=php_imap.dll
回答by Anshu Aditya
If someone using XAMPP packageon the windows machine try to look for ;extension=php_imapinside the php.inifile. And then remove the semicolon when found, I had the same issue while installing the suitecrm.
如果有人在 windows 机器上使用XAMPP 包,请尝试在php.ini文件中查找;extension=php_imap。然后在找到时删除分号,我在安装suitecrm时遇到了同样的问题。