If the target month is smaller than the original month, the extra days will be discarded.
/**
* Shift a giving months from your input datetime with month based
*
* If the target month is smaller than the original month, the extra days will be discarded.
*
It's easy to configurate a Yii2 server site with directory protection:
With using Sub Directory for Yii2, you could set sub-directory path into yii2's config:
It's easy to configurate a Laravel server site with directory protection:
Laravel Web Server Configuration
Laravel smartly detects the current base url so that you don't need to set the base url for subdirectoy:
Diffie–Hellman key exchange - Practical attacks on Internet traffic
$ openssl dhparam -out dhparams.pem 2048
Set into [mysqld]
of MySQL config, for Ubuntu your could create a file /etc/mysql/conf.d/disable_strict_mode.cnf
:
[mysqld]
sql_mode=NO_ENGINE_SUBSTITUTION
SQL mode example:
STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION