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 the string concatenation operator in php?
What is the differences between $a != $B and $a !== $B?
What are magic methods?
What is an object in php?
Is php coding easy?
How to write a program to make chess?
What are the three parts of an http request?
Explain about switch statement in PHP?
How arrays are passed through arguments?
Write a query to find the 2nd highest salary of an employee from the employee table?
What is use of isset function in php?
Explain php explode() function.
Which is the correct way to check if a session has already been started ?
Tell me how can we pass the variable through the navigation between the pages?
Which methods should be used for sending an email using the variables $to, $subject, and $body?