系统配置:
Windows 7 x64 Apache_2.4.10_x64
php-5.5.19-Win32-VC11-x64
将apache 和 php安装在c盘下的server下对应的文件夹名如下:
Apache_2.4.10_x64 对应目录: C:\server\Apache_2.4.10_x64
php-5.5.19-Win32-VC11-x64对应目录: C:\server\php_5.5.19_VC11_x64
问题:
C:\server\php_5.5.19_VC11_x64\php.ini文件中查找不到extension=php_zip.dll
C:\server\php_5.5.19_VC11_x64\ext文件夹中找不到php_zip.dll
这样也就意味着我无法调用一些与zip相关的函数。
查找解决办法:
到 http://php.net/manual/en/book.zip.php 查询相关解决办法:
如下图所示:

找到如下的对应内容:

我们到
http://windows.php.net/downloads/pecl/releases/
找对应的zip拓展,并下载

在该页面中查找zip并打开

我选择最新的版本即: 1.12.4 并打开

下载用红框的zip并解压
将解压后文件中的php_zip.dll 复制到 C:\server\php_5.5.19_VC11_x64\ext 中
打开C:\server\php_5.5.19_VC11_x64\中的php.ini文件添加 extension=php_zip.dll 保存后,重启apache服务器。
这样就可以调用zip函数。
|