PHP Tutorial

Welcome to the PHP Knowledge Base and Tutorial

PHP connection_status() Function

PHP connection_status() Function Example Return the connection satus: <?php switch (connection_status()) { case CONNECTION_NORMAL: $txt = ‘Connection is in a normal state’; break;
Read More »

explode() Function in PHP

explode() Function in PHP explode() is a built in function in PHP used to split a string in different strings.
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
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
Read More »

Install PHP

To install PHP, we will suggest you to install AMP (Apache, MySQL, PHP) software stack. It is available for all
Read More »

PHP("Introduction")

Introduction PHP started out as a small open source project that evolved as more and more people found out how
Read More »

Laravel "Framework" Basic Task List Tutorial

Application ImageBasic Task List Introduction Installation Prepping The Database Database Migrations Eloquent Models Routing Stubbing The Routes Displaying A View Building
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
Read More »

PHP program to Happy Holi

PHP program to Happy Holi Here is the simple php program to print Happy Holi.   <!DOCTYPE html> <html> <body> <?php
Read More »

php include pages or files

php include pages or files The include (or require) statement takes all the text/code/markup that exists in the specified file and copies it
Read More »

how to get date of yesterday using php

how to get date of yesterday using php   <?php $test=date('d.m.Y',strtotime("-1 days")); echo $test; ?> or <?php $test=date('d-m-Y',strtotime("-1 days")); echo
Read More »

PHP readfile() Function - file handling

PHP readfile() Function – file handling The readfile() function reads a file and writes it to the output buffer. Assume we have
Read More »

PHP print Statement

PHP print Statement The print statement can be used with or without parentheses: print or print(). Display Text The following example shows how to output
Read More »

PHP substr() function

<?php   // PHP program to illustrate substr() function Substring($str){     $len = strlen($str);     echo substr($str, 8), "\n";     echo substr($str, 5,
Read More »

How to identify server IP address in PHP

How to identify server IP address in PHP   or the server ip: $_SERVER['SERVER_ADDR']; and this for the port $_SERVER['SERVER_PORT'];
Read More »

Older Entries »