0
How can i add a php file in a html file?
7 ответов
+ 2
PHP is that type of file which comes under html code.
for example
<html>
<head>
</head>
<body>
<?PHP
echo "hello world";
?PHP
</body>
</html>
+ 1
First of all change file extension from .html to .php and then write all ur html code in this php file. Actually php supports 5 languages in its extension. That is html, css, JavaScript, php and mysql whereas html supports only three that is html, css and JavaScript.
+ 1
Use save as option and save the file with .php extension to the server folder. If it doesn't happen I'm sure u r doing it wrong way. Otherwise Google the problem.
0
<div><?php echo "hello";?></div>
file extension .php
0
I have the website in .html files and it is too difficult to change it to .php
0
asnm nothing happend
0
varsha the file i have to save it to .php or .html?