Home >> Computer Language >> Php
Q.
Explain about require and include function?
Answer :
require("test.php");
If we used require function and file (test.php) not found then it generates a fatal error and stop the execution after that line;
include("test.php");
If we used include function and file is not found then generates a warning and does not stop the execution after that line.
If we used require function and file (test.php) not found then it generates a fatal error and stop the execution after that line;
include("test.php");
If we used include function and file is not found then generates a warning and does not stop the execution after that line.
Posted By : akash