/etc/mysql/mysql.conf.d/mysql.cnf
:
set datadir = /home/mysql
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
Diffie–Hellman key exchange - Practical attacks on Internet traffic
$ openssl dhparam -out dhparams.pem 2048
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:
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:
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.
*
The exchange of new line & br HTML tag could refer to PHP - nl2br() function, which uses to inserts HTML line breaks before all newlines in a string.
These JavaScript functions consider whether to use insert or replace to handle the swap.