PHP hints and tricks

use $this->member for non-static members, use self::$member for static members. Full Answer Here is an example of correct usage of $this and self for non-static and static member variables: Here is an example of incorrect usage of $this and self for non-static and static member variables: sample PDO and how work for db connection How __construct work on Class

Read More

CentOS Version Check

The easiest way to check your CentOS version is via the command line. Login to your CentOS server using SSH and run the following command: 1 cat /etc/centos-release You may also use: 1 cat /etc/redhat-release This should return the following CentOS version information: 1 CentOS release 6.2 (Final) Kernel Versions Know that you know your CentOS version,…

Read More