I was trying to load a php file in html such that the menu is loaded dynamically from an external file.Hence I used the code :
<ul id="navlist">
<!-- Include header.php here -->
<?php include("header.php"); ?>
<!-- Normal HTML code begins here -->
</ul>
<br />
and
Based upon my research online ,I found that I will need to modify my .htaccess file to include these two lines
AddType application/x-httpd-php .php .htm .html
AddHandler x-httpd-php .php .htm .html
To force the server to parse the html at the server level ,after doing that ,when I go to the site,I just see a directory listing as opposed to the site.
Any inputs would be great.
Thanks
You see the directory listing because you don’t have any “directory index” file.
You should also disable directory listing.
Some documentation for you