Just today i'm going to learn php and first of all i'm installed apache2 server and mysql then php-7 . then within " var/www/test.php " directory my php code is working fine . But when i try to create a index.html file in my Desktop then my php code is not working . here is my index.html file
<!DOCTYPE html>
<html>
<head>
<title>learnPhp</title>
</head>
<body>
<h1>my first php code</h1>
<?php
echo "Hello World!";
?>
</body>
</html>
for solve this i'm try to all the method that given this two post:
1 . PHP codes doesn't work inside HTML codes
2. PHP inside HTML doesn't work
when i'm try to Rename the file index.phn and open it then :