When you use PHP to implement an image server, images on the local server are uploaded normally. An error occurs when the code is uploaded to a CentOS server. After debugging, it is found that the PHP exception is caused by the imageconvolution function. Query phpmanual and find that this function has been introduced in PHP versions later than 5.1. The PHP version of the server is 5.3.9. Check again
When you use PHP to implement an image server, images on the local server are uploaded normally. An error occurs when the code is uploaded to a CentOS server. After debugging, it is found that the PHP exception is caused by the imageconvolution function. Query php manual and find that this function has been introduced in PHP versions later than 5.1. The PHP version of the server is 5.3.9. Check again
When you use PHP to implement an image server, images on the local server are uploaded normally. An error occurs when the code is uploaded to a CentOS server.
After debugging, it is found that the PHP exception is caused by the imageconvolution function.
Query php manual and find that this function has been introduced in PHP versions later than 5.1.
The PHP version of the server is 5.3.9.
Check the GD version information and find that the gd database in the local server is different from that in the CentOS server.
The local version is bundle.
GD Version bundled (2.0.34 compatible)
The service is a generic version.
It can be determined that it is a GD library installation problem.
The GD on the remote CentOS service is originally available, instead of compiling and installing the GD binding version together during PHP installation.
Solution: Use the with-gd option to re-compile and install php.
Iefreer