ISO 8601 Week number in PHP, MySQL and MSSQL

ISO 8601 Week number in PHP, MySQL and MSSQL

The following methods calculate the ISO 8601 Week number in PHP, MySQL and Microsoft SQL Server, with the same exact results. All the examples below are using the same week criteria: week stars on Monday. MySQL is easy, as it supports this directly: SELECT...

Centos 6, running PHP7 alongside stock PHP5

I have a couple of servers running PHP 5.x.x on CentOS 6 and i want to migrate some to PHP7, without worrying about the older stuff. So, i could compile PHP7 from source, setup FPM and Opcache for it, etc, etc, but i found out that REMI as a solution for this...

Setup Lighthouse, CentOS, 3 simple steps

Lighthouse analyzes web apps and web pages, collecting modern performance metrics and insights on developer best practices. Here is a simple 3 step setup guide for CentOS: Setup the EPEL yum repository install nodejs and npm using YUM Run npm install -g lighthouse And...

SystemD quick cheat sheet

A small collection of Systemd commands, along with the Sysvinit counterparts. Sysvinit Command Systemd Command Notes service frobozz start systemctl start frobozz Used to start a service (not reboot persistent) service frobozz stop systemctl stop frobozz Used to stop...

Pin It on Pinterest