0

How can i add a php file in a html file?

13th Jan 2017, 5:21 PM
lefteris13s
lefteris13s - avatar
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>
13th Jan 2017, 5:57 PM
Varsha Shrivastwa
Varsha Shrivastwa - avatar
+ 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.
13th Jan 2017, 5:32 PM
Divesh Agarwal
Divesh Agarwal - avatar
+ 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.
13th Jan 2017, 5:50 PM
Divesh Agarwal
Divesh Agarwal - avatar
0
<div><?php echo "hello";?></div> file extension .php
13th Jan 2017, 5:24 PM
ASNM
ASNM - avatar
0
I have the website in .html files and it is too difficult to change it to .php
13th Jan 2017, 5:47 PM
lefteris13s
lefteris13s - avatar
0
asnm nothing happend
13th Jan 2017, 5:50 PM
lefteris13s
lefteris13s - avatar
0
varsha the file i have to save it to .php or .html?
13th Jan 2017, 6:04 PM
lefteris13s
lefteris13s - avatar