Yii2: create helper

How to create a new helper in Yii2 framework: Create a new file “Utils.php” in “app-basic\helpers” or in other folder, location is up to you, but keep things organized!

In this helper we have 2 functions to display raw

Linux: Netstat Command Examples

Netstat command displays various network related information such as network connections, routing tables, interface statistics, masquerade connections, multicast memberships etc. List All Ports (both listening and non listening ports) #netstat -a

List all tcp ports #netstat -at


MySQL Trigger – after insert trigger

I want to populate automaticaly another table when new data is inserted: For table “source_table” define a after insert trigger

The “NEW” alias contains all inserted fields into table “source_table”; After “insert” event on table “source_table”, we set the