Home /Welocme to CodeHiCode

How to create phar file in php

PHAR files are treated as read-only by default, and you can use any PHAR file without any special configuration. This is great for deployment. But as you’ll be creating your own PHARs you’ll need to allow write-access which is done through the php.ini file. Open php.ini, find the phar.readonly directive, and modify it accordingly: phar.readonly … Continue reading

How to Upgrade PHP 5.3 to PHP 5.6 on Centos

It’s easy to upgrade the php version with some short command on centos. Step 1. Check the Current Version You get the following output PHP 5.3.3 (cli) (built: Jul 9 2015 17:39:00) Copyright (c) 1997-2010 The PHP Group Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies Step 2. Install the Remi and RPM repositories. Enable … Continue reading

How to Install ImageMagick on Ubuntu

ImageMagick is a software suite to create, edit, compose, or convert bitmap images. It can read and write images in a variety of formats like GIF, JPEG, PNG, Postscript, and TIFF. We can also use ImageMagick to resize, flip, mirror, rotate, distort, shear and transform images, adjust image colors, apply various special effects, or draw … Continue reading