What is an include file in PHP

In this article I have been describing PHP include file.
  • 1802

PHP Include files

The PHP include file is used to insert  content of one PHP file into another PHP file before the execution of server.

Syntax of include command

include 'filename';


require 'filename';

PHP include statement

The php include command includes and evaluates the specified file.

Example of include file





<?php include 'date.php'?>

<h1> Include command home page.</h1>

<p>The included file is given above........</p>







You may also want to read these related articles :here

Ask Your Question 

Got a programming related question? You may want to post your question here

Programming Answers here

© 2020 DotNetHeaven. All rights reserved.