Code The singleton pattern is used to restrict the creation of only object of a class. This is useful when it is expensive (in terms of resources) to initiate new objects every time the same object is needed. This pattern specifically put this logic of maintaining only one instance inside the class itself. This pattern […]

You need to do the following steps to fix it. You need to change php version and library file name in the following command. Find the files which is trying to load this library ( or any other ) grep -Hrv “;” /etc/php/7.0 | grep -E “extension(\s+)?=” | grep mcrypt Then comment out the […]

It is not installed by default so you have to install it and then a little configuration is required. sudo apt install sendmail The run the following command and choose Y for all the options. sudo sendmailconfig Now edit the host file: sudo nano /etc/hosts And add or edit as: 127.0.0.1 localhost localhost.localdomain your_machine_name To […]

Today I spent a couple of hours to figure out that ONLY the following configuration works. It is not covered in any video/tutorial. This is the settings that MUST be added to all the files: [xDebug] zend_extension=/usr/lib/php/20160303/xdebug.so xdebug.default_enable=1 xdebug.idekey=PHPSTORM xdebug.remote_port=9000 xdebug.remote_enable=1 xdebug.remote_handler=dbgp xdebug.remote_autostart = on xdebug.remote_start = on xdebug.profiler_enable=1 xdebug.profiler_output_dir=/dev/null xdebug.remote_host=localhost The files […]