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

explode() Function in PHP

php

explode() Function in PHP explode() is a built in function in PHP used to split a string in different strings. The explode() function splits a string based on a string delimeter, i.e. it splits the string wherever the delimeter character occurs. This functions returns an array containing the strings formed by splitting the original string. … Read more

Install PHP 7.4 on CentOS 8

Install PHP 7.4 on CentOS 8 PHP, a recursive acronym for PHP Hypertext Preprocessor, is a popular server-side scripting language used in web development for creating powerful and dynamic websites. Step 1: Add EPEL and Remi Repositories To get started, you need to add EPEL & Remi repository from where you will be able to install PHP 7.4 on CentOS 8 Linux. To install … Read more

PHP Frame Work

Frame Work is collection of software or program, that trigger off easy coding and implementing the code. It helps to programmer to achieve goals in short period of time. Some of frame works- Laravel Laravel is a free, open-source PHP web framework, created by Taylor Otwell and intended for the development of web applications following … Read more

Install PHP

To install PHP, we will suggest you to install AMP (Apache, MySQL, PHP) software stack. It is available for all operating systems. WAMP for Windows LAMP for Linux MAMP for Mac SAMP for Solaris FAMP for FreeBSD XAMPP (Cross, Apache, MySQL, PHP, Perl) for Cross Platform: It includes some other components too such as FileZilla, … Read more

PHP(“Introduction”)

Introduction PHP started out as a small open source project that evolved as more and more people found out how useful it was. Rasmus Lerdorf unleashed the first version of PHP way back in 1994. PHP is a recursive acronym for “PHP: Hypertext Preprocessor”. PHP is a server side scripting language that is embedded in … Read more

Categories PHP

Laravel “Framework” Basic Task List Tutorial

Basic Task List Introduction Installation Prepping The Database Database Migrations Eloquent Models Routing Stubbing The Routes Displaying A View Building Layouts & Views Defining The Layout Defining The Child View Adding Tasks Validation Creating The Task Displaying Existing Tasks Deleting Tasks Adding The Delete Button Deleting The Task Introduction This quickstart guide provides a basic … Read more

Laravel “Framework” Installation

Install Composer Laravel utilizes Composer to manage its dependencies. First, download a copy of the composer.phar. Once you have the PHAR archive, you can either keep it in your local project directory or move to usr/local/bin to use it globally on your system. On Windows, you can use the Composer Windows installer. Install Laravel Via … Read more