gpt4 book ai didi

php_zip.dll on start can't be found on start(在启动时找不到启动时的php_zip.dll)

转载 作者:bug小助手 更新时间:2023-10-25 14:49:34 24 4
gpt4 key购买 nike



I'm trying to install php_zip for a laravel project. I'm using Windows.

我正在尝试为一个laravel项目安装php_zip。我正在使用Windows。


I then put this php_zip.dll inside my php/ext folder.
enter image description here

然后,我将这个php_zip.dll放入我的php/ext文件夹中。


I then edited my php.ini file to add this line :

然后,我编辑了php.ini文件,添加了下面这一行:


extension=zip

to add zip among the existing extensions.

在现有的扩展中添加zip。


Still PHP tells me this when i deploy my server :

尽管如此,当我部署服务器时,PHP会告诉我:


Warning: PHP Startup: Unable to load dynamic library 'zip' (tried: C:\xampp\php\ext\zip (the specified module was not found), C:\xampp\php\ext\php_zip.dll (the specified module was not found)) in Unknown on line 0
Starting Laravel development server: http://127.0.0.1:8000
[Mon Jan 25 11:50:11 2021] PHP Warning: PHP Startup: Unable to load dynamic library 'zip' (tried: C:\xampp\php\ext\zip (the specified module was not found), C:\xampp\php\ext\php_zip.dll (the specified module was not found)) in Unknown on line 0

As we can see PHP is trying to read the proper folder and is looking for the proper file. Why is it unable to load it then ?

正如我们所看到的,PHP正在尝试读取正确的文件夹并查找正确的文件。那为什么装不上去呢?


更多回答

restart your server

重新启动您的服务器

The right declaration is : extension=php_extname.dll so in your case extension=php_zip.dll, then restart apache/nginx server

正确的声明是:扩展=php_extname.dll,因此在您的示例中,扩展=php_zip.dll,然后重新启动apache/nginx服务器

Yeah i tried all possible forms of the statement. The strangest part is when i follow the console link (C:\xampp\php\ext\php_zip.dll) and vscode can even open it without problem while the terminal says it can't

是的,我试过所有可能的口供形式。最奇怪的是,当我打开控制台链接(C:\xampp\php\ext\php_zip.dll)时,vscode甚至可以毫无问题地打开它,而终端却说它不能打开

@raphael.oester it mean is your .dll is not compatible with your php version download another one

@Raphael.oester这意味着您的.dll与您的php版本不兼容,请下载另一个

Right... I'm running PHP 8.0.1 and the latest php_zip version is for 7.5. I have absolutely no idea how i'm going to open that zip file now

好的.。我运行的是PHP8.0.1,最新的php_zip版本是7.5。我完全不知道现在该如何打开那个压缩文件

优秀答案推荐

SO after php version 7.4, you must go to apache, and select php.ini
after you must find extension=zip and delete the ; before extension=zip
then save the config and restart your server php...and it ll be ok

因此,在php版本7.4之后,您必须转到apache并选择php.ini,然后必须找到扩展=压缩并删除;在扩展=压缩之前,保存配置并重新启动您的服务器php……就可以了。


更多回答

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com