Hye There I am new to web and want to include a .php file inside my .html file. This is my .html file:
<html>
<head>
<title>Includer Example</title>
</head>
<body>
<div style="height:100px; width:300px; border:#F00 thick; background-color:#F00">
THIS DIV IS IN HTML FILE
</div>
<?php
include 'seconddiv.php';
?>
</body>
</html>
and this is my php file:
<html>
<head>
<title>second div</title>
</head>
<body>
<div style="height:100px; width:300px; background-color:#FF0">
THIS DIV IS IN PHP FILE
</div>
</body>
</html>
I am using WampServer and totally new to Web Coding can somebody give any idea what I am doing so wrong please thanks in advance!
.htmlfile.., so you wont be able to include a php file eather inside a.htmlfile. You should make it into a.phpfile first.