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


Please Help Members By Posting Answers For Below Questions

What is the string concatenation operator in php?

514


What is the differences between $a != $B and $a !== $B?

526


What are magic methods?

544


What is an object in php?

547


Is php coding easy?

498






How to write a program to make chess?

540


What are the three parts of an http request?

567


Explain about switch statement in PHP?

583


How arrays are passed through arguments?

604


Write a query to find the 2nd highest salary of an employee from the employee table?

638


What is use of isset function in php?

580


Explain php explode() function.

540


Which is the correct way to check if a session has already been started ?

517


Tell me how can we pass the variable through the navigation between the pages?

521


Which methods should be used for sending an email using the variables $to, $subject, and $body?

566