I just started learning php and thought it would be just like html,but when I created a file called test.php and wrote the following code inside:
<!DOCTYPE html>
<html>
<head>
<title>php</title>
</head>
<body>
<?php
echo "<p>hello</p>";
?>
</body>
</html>
then save the file to desktop.Its icon wasn’t google chrome(my default browser) like .html files but something looked like a sheet of paper,so I’ve no idea how to open it in the browser to see the results like I do with .html files.
Is there something wrong with my file name?Or is there anything I should download first?Or anything else?