Difference between include and include_once in php
All these functions include and include_once are used to include the files in the php page.


PHP include() Function:
If the specified file is not available ,the include() function generates a warning,and executes the
remaining code.

Example:
<?php 
include("test.php"); 
?>



PHP include_once() Function:
The include_once() statement includes and evaluates the specified file during the execution of the script. This is similar to the include() statement,with the only difference being that if the file has already been included, it will not be included again.the include_once() function generates a warning.

Example:
<?php 
include_once("test.php"); //will work.
?>