This may seems to be a silly mistake or my sheer ignorance about PHP basis. I have read some other question on stackoverflow regarding the same problem I'm facing, but it didn't help me much.
unable to Include Files php using include
My problem:
I am trying to include a header.php file which is located in my "include folder" onto my index.php file which is in the root folder.
index.php file content:
</head>
<body id="page1">
<!--==============================header=================================-->
<header>
<?
include("include/header.php");
?>
</header><div class="ic">
In the design view on Dreamweaver I can see the header is being included. However, when I am trying to see the page on localhost (WAMP server). I can't see the header is being displayed and I am not getting any error message either.
require()instead, which'd throw a fatal error if the file can't be included. if it's a shorttags, you'd be able to see the php code in your browsers "view source".