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.
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.
+ 4
the php script will be launched together with the page loading.
0
Thank you.. how do i start an external php code? do i still have to add the html tags?