Saturday, 7 September 2013

Issues with using PHP within HTML

Issues with using PHP within HTML

I was trying to test out PHP in HTML on my localhost using this code (in
an .html file):
<!DOCTYPE html>
<html>
<head>
<title>PHP Test</title>
<?php echo '<p>Hello World</p>';
?>
</head>
<body>
</body>
</html>
And this is the output:
Hello World
'; ?>
What am I doing wrong?

No comments:

Post a Comment