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

QUIT TIP TO SETUP THE NETWORK

TO SETUP THE NETWORK -you can use the command line #nmtui or # nano /etc/sysconfig/network-scripts/name the connection *******sample file HWADDR=00:0C:29:5B:08:A2 TYPE=Ethernet BOOTPROTO=static DEFROUTE=yes PEERDNS=yes PEERROUTES=yes USERCTL=no NM_CONTROLLED=no IPV4_FAILURE_FATAL=no IPV6INIT=yes IPV6_AUTOCONF=yes IPV6_DEFROUTE=yes IPV6_PEERDNS=yes IPV6_PEERROUTES=yes IPV6_FAILURE_FATAL=no NAME=eno16777736 UUID=8c6eefa2-0d7b-4559-9870-2953290dc988 ONBOOT=yes IPADDR=192.168.1.70 NETMASK=255.255.255.0 GATEWAY=192.168.1.1 DNS1=192.168.1.1 DNS2=8.8.8.8 DOMAIN=rheltest.lan ********sample file if you want DNS servers enabled system wide. # nano…

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