im tried to write php to my html file, im using wampserver, but when i add php in html it's turns to comment why ? Pls help.
<?php 
echo "hello"
 ?>
turns to comment
<--?php 
echo "hello"
 ?-->
im tried to write php to my html file, im using wampserver, but when i add php in html it's turns to comment why ? Pls help.
<?php 
echo "hello"
 ?>
turns to comment
<--?php 
echo "hello"
 ?-->
 
    
    You don't add PHP code to an HTML file.
If the file has PHP code then the file needs to have a valid PHP extension, such as .php for example. The PHP file can contain HTML code also.
