PHP connection_status() Function

php connection status

PHP connection_status() Function Example Return the connection satus: <?php switch (connection_status()) { case CONNECTION_NORMAL: $txt = ‘Connection is in a normal state’; break; case CONNECTION_ABORTED: $txt = ‘Connection aborted’; break; case CONNECTION_TIMEOUT: $txt = ‘Connection timed out’; break; case (CONNECTION_ABORTED & CONNECTION_TIMEOUT): $txt = ‘Connection aborted and timed out’; break; default: $txt = ‘Unknown’; break; } echo $txt; ?> Discuss if any issue or improvement on … Read more

How to get free SSL certificate

How to get the free SSL certificate Let’s Encrypt is a Certificate Authority (CA) that provides free certificates for Transport Layer Security (TLS) encryption, thereby enabling encrypted HTTPS on web servers. It simplifies the process of creation, validation, signing, installation, and renewal of certificates by providing a software client that automates most of the steps—Certbot. Here we … Read more

Understanding Hard link in Linux

Understanding Hard link in Linux The concept of a hard link is the most basic thing and here we will discuss it today. Every file on the Linux filesystem starts with a single hard link. What is the hard link? The link is between the filename and the actual data stored on the filesystem. Creating an additional … Read more

What is symbolic link, soft link or symlink

What is a symbolic link, soft link, or symlink A symbolic link (also known as a soft link or symlink) consists of a special type of file that references another file or directory. Unix/Linux-like operating systems often use symbolic links. Here we will see how to use the ln command to create symbolic/soft links. There … Read more

22 July today in history

22 July today in history 1678-Chhatrapati Shivaji Maharaj wins the fort of Vellore. 1981-India’s first geostationary satellite APPLE started functioning. 2012-Pranab Mukherjee was elected 13th President of India. 2019-India’s lunar mission, Chandrayaan-2 successfully takes off from Satish Dhawan Space Center, Sriharikota aiming to be the fourth nation to soft-land on the moon. 1988-Indian National Satellite … Read more

mysql is dead but subsys locked

mysql 5.7

MySQL is dead but subsys locked Issue Description: When tried to connect to MySQL or run any command. It Displayed The Following Error: Can’t connect to local MySQL server through socket ‘/var/mysql/mysql.sock'(2) When checked the status of MySQL service from the below command: service mysqld status as a root user I got : mysql is dead … Read more

Rsync example: automated backup at home

Rsync example: automated backup at home This script just creates a daily backup of Satya work in a ~satya/backup/ directory so he can retrieve any version from the last week. The last line does the rsync of her directory across the modem link to the host samba. Note that I am using the -C option … Read more

Computer: Development of Computer

Computer: Development of Computer Introduction For most people, a computer is a machine used for calculation or computation, but actually, it is much more than that. PreciselyComputer is an electronic device for performing arithmetic and logical operation. Or “Computer is a device or a flexible machine to process data and converts it into information.” To know about … Read more

Rsync: Theoretical mathematics and algorithm

Rsync: Theoretical mathematics and algorithm This article is excellent for understanding theoretical mathematics and some of the mechanics of the rsync algorithm. Unfortunately, they are more about the theory than the implementation of the rsync utility. rsync is an open-source utility that provides fast incremental file transfer. rsync is freely available under the GNU General Public License and is … Read more