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
Explain mixed and callback functions?
Explain different sorting function in php?
What is php resource type?
Does session expire on closing browser?
What is the use of limit in mysql?
Explain scalar type declarations in php7?
Why should I store logs in a database rather than a file?
What is delimiter php?
What is overloading in php?
What is the use of callback in php?
What would occur if a fatal error was thrown in your php program?
What is difference between require_once(), require(), include()?
What is overriding in php?
What is sticky form in php?
What is restful api?