how to include external php file in to html page?

Answer Posted / edin

Hi Sott,

only possible way is to include your PHP file above or
belowe HTML tags like

<?php include("filename.php");?>
<?php require("filename.php");?>
<?php include_once("filename.php");?>
<?php require_once("filename.php");?>

Or with inline frame
<iframe src="external.php"></iframe>

Exanple frin Sudheer is also OK, but if you want to execute
some PHP code.

Is This Answer Correct ?    9 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to get the directory name out of a file path name?

532


How is it possible to set an infinite execution time for php script?

518


Is php still used?

526


How is session id stored in browser?

549


Can you extend a final defined class?

8518






How to connect to mysql from a php script?

557


What is sticky form in php?

497


What is sql injection in php?

524


How can we check the value of a given variable is a number?

604


How can I increase my website session?

534


What is the difference between abstract class and interface in php?

518


What language is php based on?

484


Can we extend two classes in php?

519


What are the advantages of triggers in php?

475


How to get the ip address of the client?

8695