Go to WHM -> Software -> Module Installers -> PHP Pecl (manage). On the box below “Install a PHP Pecl” enter “imagick” and click “Install Now” button – that’s all. Restart Apache.
If you decide to uninstall it’s as easy as the installation process:
Imagick: WHM -> Software -> Module Installers -> PHP Pecl (manage). Click on Uninstall button for Imagick
If you get the following error;
checking ImageMagick MagickWand API configuration program… configure: error: not found. Please provide a path to MagickWand-config or Wand-config program.
ERROR: `/tmp/pear/temp/imagick/configure –with-imagick’ failed
You need to install the ImageMagick devel package.
$ yum update
$ yum install ImageMagick-devel
The following command may be required if you get an error.
$ yum -y install ImageMagick-devel ImageMagick-c++-devel
If you try to install via yum, you may get the error below. If you get such error, you need to download RPM.
$url = "http://www.google.com/path/filename.jpg";
preg_match("/^.*[\/]([^\.]+)\..+/", $url, $out);
print_r($out); //Array (  => http://www.google.com/path/filename.jpg  => filename )
If you need to find the text after las occurrence, you can use regex easily.
Cloudinary.com is an end-to-end image management solution for your Web and mobile applications.
If you have Multidimensional array, you can get any value by key from all arrays. There is no need to write traditional loop. You can do it with single line code.
If you used loop for mysql result, you cannot use a loop again unless you set the pointer again.
If you are tired of entering password for connection ssh, you can set a ssh key. Anymore you don’t need to enter ssh key.
In regular expression, writing rule for except some character is easy but sometimes we need some string which does not contain the word which we don’t want.
Getting last folder name could seem as a complex process.