This article will guide you how to install MongoDB using homebrew on mac. The steps are very simple by using your terminal. Let’s start
In this post, I would like to share about one of the most well known SOLID Design Principles, Single Responsibility Principle (SRP). It comes from the “S” from SOLID. This principle is the easiest to understand and adhere to.
No doubt that Mockery is one of powerful mock tool for unit testing in PHP. In this post, I will share about how to use Mockery on Codeception. Note: I assume that you already had Codeception installed and bootstrapped.
If you install PHPStorm, you will notice that the default setting of this editor doesn’t show line numbers. For me, it is important to show this. Here is how to activate it.
The default configuration of Bootstrap modal is can be closed when visitor click outside the modal or by pressing the escape (ESC) key. If you want to prevent boostrap modal from closing by those actions, you need to change the value of backdrop and keyboard configuration. The default value of backdrop and keyboard is set …
I had a case to use bind parameter of PDO statement inside loop. This was code that I used I executed this code and got surprising result, it didn’t work. Apparently, PDO statement use $value with last looping value. I took a look at PHPDoc for bindParam() and found why this could be happened.
I got this SSL error when I want to use a PHP library to access AWS SES. The complete error said 60 SSL certificate problem, verify that the CA cert is OK. Details: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed I found that it is related to curl setting in php.ini. It needs to know what certificate you …
After I ran composer update to get new Yii2 framework version, I got this error yii\web\Request::cookieValidationKey must be configured with a secret key To overcome this error, I added this code below in config/main.php ‘components’ => [ ‘request’ => [ ‘enableCookieValidation’ => true, ‘cookieValidationKey’ => ‘your-validation-key’, ], …… Hope it helps.
I got MySQL error 2006: MySQL server has gone away when I was importing my big database. This error is caused by low default setting of max_allowed_packet. The solution is raising this value in mysql configuration file. If you use xampp in windows, the configuration file is /xampp/mysql/bin/my.ini If you use linux, the configuration file is …