I am trying to program in PHP, but php tags are not working:
and i believe there’s no error in my code below:
<html>
<head>
<?php
$test = "Gumagana ako :P";
echo "$test";
?>
<title>My First PHP</title>
</head>
<body>
My Test String is <?php echo $test; ">
</body>
</html>
What do you think is the problem? FYI, I’m using xampp.
Make sure your file extension is .php and its inside your htdocs folder of Xampp folder. And also make sure, Apache service is running fine.
And also make sure, you are browsing this like
http://localhost/yourfile.php