How to Install PHP 7 on CentOS 6

Previously i posted about upgrading PHP 5.3 to PHP 5.6 on CentOS 6. If you want to install / upgrade it to PHP 7, here’s how: 1. Make sure to remove older version of PHP yum remove php-common 2. Add EPEL and Remi repository yum install...

How to Upgrade PHP 5.3 to PHP 5.6 on CentOS 6

Follow this post to install PHP 7 to your CentOS 6 Nowadays, to keep up up-to-date with the latest PHP technology, you need at least PHP version 5.6 installed on your server. But for CentOS 6 users, PHP 5.3.3 is the latest version of PHP available through the official...

Convert PHP object to an array recursively

In PHP, you can easily convert an object to an array by typecasting it. $array = (array) $object; But if you have multi-dimensional / nested objects, this will only converts the top level of the object. So instead of looping through the object and typecasting it, just...

PHP-GD: Create Image from Text

Some people want to hide their text into image for any reason. As example, to avoid spambot steal their email address, or to generate dynamic images content. Its simply done with PHP and GD Library. See this simple function: function imgfromstring($string){ $font = 5;...
Page 1 of 3123