How to include external file using PHP?
Include Function takes all the matter in the file and includes that matter or content in the current file where the include statement is called. It generate warning in case any problem arises but the script will continue its execution.
//Program to show how to use Include Function in PHP.
The content of demo.php is:
<h1>Php is Server-Scripting Language!!</h1>
/*Output of the above program is:
Php is Server-Scripting Language!!