PHP custom session handler changes in PHP7

If you are using a custom session handler probably you noticed this kind of issue when you upgraded to PHP7, else keep this information in mind since in the PHP documentation it is not really clear at the moment of writing this article. Since PHP 5 this changes affected custom session handler implementation: The read method […]

Install PHP 7 and xdebug for development environement

PHP 7 was released Compile PHP 7 from source for development environement

Install xdebug from sources, since there is no available binaries compatible with PHP7 Download xdebug source archive Unzip the source code Check the PHP version /opt/php7/bin/phpize configure the compile process with this php version ./configure –with-php-config=/opt/php7/bin/php-config make make install Add the extension to […]

E-commerce platforms battle, benchmark and quality report

This article is focused on open-source online commerce platforms, most of them form PHP world. Famous e-commerce platform vs new technologies If you are here probably you want to start an online store and you are not 100% decided what will be the best platform you can use.  We are talking here just about open-source […]

Configure Zend Opcache extension for PHP

Zend Opcache extension installation If you want to speedup your PHP application maybe you are looking for a PHP accelerator such APC cache. Since PHP 5.5 there is another option for caching Opcodes (details): Zend OpCache extension If you are using PHP 5.5.0 and later Zend Opcache extension may be compiled with PHP, you have […]

Install PHP APC extension from sources

How to compile the PHP APC extension for your php version Used operating system: Ubuntu 14.04 There are few steps to follow until you will have your APC extension up and running for your particular PHP version: Download the latest version of APC

Extract files and identify the default values for following parameters PHP […]

Find in files – translations texts

Use case Follow this article if you want to locate multiple occurrences of a string in a folder using a regular expression pattern.  Find all occurrence of pattern Using following code in linux command line you will copy all occurrence of the given pattern in a temporary file

Process the found parts Using a simple text […]

Use more then one PHP version in Nginx

In many cases probably you need to have different PHP version on the same machine and using it on different domains. Install PHP You can install PHP versions by downloading already compiled package or you can compile your own (with personalized configuration – quick php compile & install guide). Personally, I prefer for development machines to […]

Install PHP 5.x from repository on Ubuntu

Install build tool Here are detailed steps for installing compile tool for ubuntu. Install dependencies In most cases quite a lot of dependencies will be missing. You can install most of them using next command

Compile and install PHP Clone the PHP repository

Choose the version of php you want to compile and […]

X-debug installation and configuration

Find few installation references Few steps for having  x-debug working on your local environment or development: Download the proper xdebug extension, or you can use xdebug wizard for more information about environement. An alternative is to install using pecl: pecl install xdebug Copy binary file to PHP’s extensions folder Link this binary file in php.ini using […]