0

How do i add an external php file to my html?

I've been learning php in SoloLearn but i have not seen if i can make it without the html tags and if i can add it into my html.

3rd Apr 2017, 12:20 PM
Mike Pancake
Mike Pancake - avatar
3 Respuestas
+ 4
add following in your html: <?php include "yourExternalFile.php"; ?> you can replace "include" with include_once or require or require_once according to the critical importance of data stored in the php file.
3rd Apr 2017, 12:27 PM
seamiki
seamiki - avatar
+ 4
the php script will be launched together with the page loading.
3rd Apr 2017, 12:31 PM
seamiki
seamiki - avatar
0
Thank you.. how do i start an external php code? do i still have to add the html tags?
3rd Apr 2017, 12:29 PM
Mike Pancake
Mike Pancake - avatar