CSS background properties are used to style background of HTML element.There are 5 different CSS background property: CSS background color CSS background image background repeat background attachment CSS background position Background Color The background-color property is used to set the background color of an element. The following example demonstrates how to set theContinue Reading

PHP has a rich set of functions for working with files and directories. PHP contains both low-level and high-level filesystem functions. The fopen() function is an example of a low-level function; it is a thin wrapper of a similar C function. The file() function is an example of a high-level PHP filesystem function. PHPContinue Reading

MySQL MySQL is a leading open source database management system. It is a multiuser, multithreaded database management system. MySQL is especially popular on the web. It is one of the parts of the very popular LAMP platform. Linux, Apache, MySQL, and PHP. Currently MySQL is owned by Oracle. MySQL database is availableContinue Reading

PHP static keyword We can declare class properties and methods to be static. The static properties and methods do not belong to the instance of the class. They belong to the class itself. They are accessible through the scope resolution operator ::. staticmethod.php <?php class Sys { public static function println($string) { echo “$string\n”;Continue Reading

Object-oriented programming (OOP) is a programming paradigm that uses objects and their interactions to design applications and computer programs. The basic programming concepts in OOP are: Abstraction Polymorphism Encapsulation Inheritance Abstraction is simplifying complex reality by modeling classes appropriate to the problem. Polymorphism is the process of using an operator or function in differentContinue Reading

Regular expressions are used for text searching and more advanced text manipulation. Regular expressions are built-in tools like grep, sed, text editors like vi, emacs, programming languages like Tcl, Perl, and Python. PHP has a built-in support for regular expressions too. In PHP, there are two modules for regular expressions:Continue Reading

PHP has a number of functions for handling as well as reporting errors. Besides, you can define your own way of handling and reporting errors. In this and subsequent pages we are going to discuss installation, runtime configuration, predefined constants and functions relating to PHP error handling and reporting. ConfigurationContinue Reading

PHP session has the ability to store information on the server that can be accessed across multiple PHP pages. In PHP, There are three common methods to pass data from any page to other pages. The Session is one of them. The second method is using Cookies and the third method is PHP Form. However,Continue Reading

What is a Cookie Cookies are used to store the information of a web page in a remote browser, so that when the same user comes back to that page, that information can be retrieved from the browser itself. In this tutorial, we will discuss how to use Cookies inContinue Reading

File Inclusion The include (or require) statement takes all the text/code/markup that exists in the specified file and copies it into the file that uses the include statement.Including files is very useful when you want to include the same PHP, HTML, or text on multiple pages of a website. YouContinue Reading