Forum

Number Of Page View:100,000+/Months
LOGIN |New User

Reply

How we use include() and require() function in PHP?
 When we use include() function it will contain all the text into a file and this will send to a file when we use include() function.
Example:
<html>
<body>
<?php
include("CorruptFile.php");
echo "R4R Welcomes You!";
?>
</body>
</html>
 By using include() function is use to include the header file in a page.It will generate warning but not stopped the execution of JavaScript. 
  When we use require() function it will contain all the text into a file and this will send to a file when we use require() function.
Example:
<html>
<body>
<?php
require("CorruptFile.php");
echo "R4R Welcomes You!";
?>
</body>
</html>
It will generate warning and also stopped the execution of JavaScript.