+ 2

How do I introduce PHP in HTML document?

It have been months I'm Programming web using HTML CSS and JavaScript. Now I would like to introduce PHP in my codings. How do I do it? If I like your answer, it means I m thankful to you.

19th Feb 2017, 4:11 PM
Shreyas Sable
Shreyas Sable - avatar
4 Respostas
+ 6
install xampp. then write html code in php extention file. you can add php code inline using tag <?php your code here ?>.
19th Feb 2017, 4:41 PM
Agus Mei
Agus Mei - avatar
+ 3
Thank you all of you.
25th Feb 2017, 7:11 AM
Shreyas Sable
Shreyas Sable - avatar
+ 1
You need to create a different document and save it as a PHP doc. In a way, PHP comunicates with HTML but the opposite is not true. You have PHP lines that will print the HTML you want in your web page. PHP is server side coding and HTML is client side coding.
19th Feb 2017, 4:31 PM
Sam
+ 1
include php code along with the html tags but make sure you have it between <?php your_code ?> and the page needs to have .php extension for that code to be executed.
20th Feb 2017, 10:49 AM
RylN
RylN - avatar