0
How i can execute php inside html code
hi iwill design a website but ican programmed it by php iwant to know the idea of programming website . iam very good in php but i can,t use it with html code. also i put the php code inside html code doesn,t work
11 Answers
+ 2
yes...xampp
local host
+ 2
Was there any error message from PHP, or the PHP code is printed as regular text? could you be more apecific about the "doesn't work" part here ...
+ 1
Can i see that code ?
+ 1
You just need to put the php code inside the tag <?php ?>.
For example:
<title><?php echo "Title"; ?></title>
+ 1
Did you save the file with the php extension?
+ 1
Mmh weird, are you running the code on a server?
0
Mi_ra_go that way does not work
0
it,s so long code😅
0
iwill give you a shurcut
0
<html>
<head>
<title>it,s title</title>
<body>
<?php
echo "hi iam php and iam not work😥";
?>
</body>
</html>
0
i was try .php
and .html also