I'm new here & in PHP scripting.
My PHP is not properly working within html files.
- Code: Select all
<html>
<head>
<title>Hello</title>
</head>
<body>
<?php
echo "<h2>Hello World</h2>";
?>
</body>
</html>
When I browse the above file (save as hello1.html) in web_browsers it shows: Hello World"; ?>
But the same PHP section (<?php.....?>) works if I write it in a .php without any html tags. The tutorials I've seen all use
php & html.

My operating is CentOS 5 & PHP is php-5.1.6-39.el5_8
How to solve this thing?
Thanks.



