0

i have written a html code in notepad and that code contains a php segment too. Now , with which file extension shall I save that file ? .php or .html ?

19th Jun 2016, 6:03 AM
pranshu kharkwal
pranshu kharkwal - avatar
6 odpowiedzi
+ 1
you have to save it as .php
1st Jul 2016, 5:42 AM
Midhun Mathew
0
you save file with extension .php or .phtml depends on web server configuration. mostly you can try them both. point is, php code should be placed between <?php and ?>
19th Jun 2016, 7:25 AM
ajie
ajie - avatar
0
where you want to show
19th Jun 2016, 7:50 AM
fathm
fathm - avatar
0
.php and open it in à server
19th Jun 2016, 11:45 AM
Adil Yousfi
0
if it contains php means definitely you need to use .php extension
23rd Jun 2016, 10:52 AM
Lakshmi Priya
Lakshmi Priya - avatar
0
web browsers don't understand php codes, so u have to place the php file in the server for it to translated by the browser
24th Jun 2016, 5:41 AM
Abbeville
Abbeville - avatar