+ 2
.html or .php
When combining html with php, which data type should be used?
5 Antworten
+ 6
Use .html as file extension and php code in
<?php
?>
+ 5
When combinning php and html it should used *. php type. Here an example:
https://code.sololearn.com/wdMg5lB9T43K/?ref=app
+ 3
I am asking about the correct file ending.
+ 2
Do you have a code related to this doubt?
If you do, then please share its link for a review.
Did you mean file extension? well, if a HTML document has PHP code embedded, then you save the file using .php extension. If you save it using .htm or .html, then PHP will ignore (not process) the code in it.
+ 1
I didn't understand what you mean by "data type" here ...