how to include external php file in to html page?
Answer Posted / pravi
Only .php extension files can be added by the following
syntax.
include("filename.php");
require("filename.php");
include_once("filename.php");
require_once("filename.php");
The only difference between the include and require is the
error handling.
Include - just gives warning errors
Require - gives fatal errors
| Is This Answer Correct ? | 25 Yes | 10 No |
Post New Answer View All Answers
What is trait in php?
How to test if a variable is an array?
Which function gives us the number of affected entries by a query?
What is difference between array_merge and array_combine?
How to make database connection in php?
What is $_ request?
What is mysqli_fetch_array?
How can php and html interact?
Tell me what is the meaning of a final class and a final method?
What is difference between session and cookies in php?
What does a delimiter do in mysql?
What types of MYSQL function available for affecting columns
How come the code works, but doesn’t for two-dimensional array of mine?
What difference between require() and require_once()?
Is empty function c++?