php - imagick command line successful, info() loading failed
PHP中文网
PHP中文网 2017-05-16 13:12:32
0
1
809

< br>The command line shows success, but imagick cannot be found in phpinfo()

In addition, under the apache log file, see PHP Warning: PHP Startup: Unable to load dynamic library 'D:/wamp/bin/php/php7.0.12/ext\\php_imagick.dll' - \xef \xbf\xbd\xd2\xb2\xef\xbf\xbd\xef\xbf\xbd\xef\xbf\xbd\xd6\xb8\xef\xbf\xbd\xef\xbf\xbd\xef\xbf\xbd\xc4 \xb3\xef\xbf\xbd\xef\xbf\xbd\xef\xbf\xbd\r\n in Unknown on line 0

Can you please tell me how to solve it?

PHP中文网
PHP中文网

认证0级讲师

reply all(1)
習慣沉默

The error message after decoding is:
PHP Warning: PHP Startup: Unable to load dynamic library 'D:/wamp/bin/php/php7.0.12/extphp_imagick.dll'
So php cannot find the extension of imagick, check it out The extension is not installed properly.

First, create a new file and write the following code in the file:

<?php phpinfo();

Access with a browser to see if there is extension information for imagick.

Then you need to install the Imagemagick library on your Windows computer, download address:

ftp.imagemagick.org/pub/ImageMagick/windows/

Added:

There are two important points when installing the php imagick extension on Windows

The first step is to download the corresponding expansion package in pecl according to the PHP version, whether it is thread-safe, 32-bit or 64-bit. The php_imagick.dll file in the package should be placed in the ext directory of PHP. The CORE in the package starts with The dll file should be placed in the Apache/bin directory.

The second step is to install the Imagemagick library. After installation, you need to configure the environment variables. Once done correctly, imagick can be used.

Give you a reference tutorial:

https://refreshless.com/blog/...

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template