MySQL change data-dir for Ubuntu 16.04
1. Change mysql.cnf
set datadir = /home/mysql
[mysqld] of MySQL config, for Ubuntu your could create a file
SQL mode example:
$ openssl dhparam -out dhparams.pem 2048
It's easy to configurate a Laravel server site with directory protection:
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.