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 ?
6 Réponses
+ 1
you have to save it as .php
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 ?>
0
where you want to show
0
.php and open it in à server
0
if it contains php means definitely you need to use .php extension
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