+ 2
I made php file embeded in HTML and stored by .html extension but php is not outputing on browser.
<html><head></head><body> <?php echo "Hello World!" ?> </body></html>
9 Answers
+ 2
Please go back to the PHP tutorial. I feel you are to add a link in the <head> tag
+ 4
Though you write HTML inside, extension should be ".php"
+ 1
Ok sir sorry.
i m beginner in php
+ 1
Yeah, I've seen the error. The extension
Save it with .php
+ 1
Sudarshan Rai
can you give example?
+ 1
I don't think that's possible Alian Jutt
+ 1
You cannot write php inside html page, save the page with extension .php, then the code will work.
0
No sir they placed tag in body .
0
how to give its link in html.
Just as we give css link <rel="stylesheet" href="index.css">