I have a question that has been eluding me for a few hours of frustrating trial and error.
I want to include a server side include in a PHP file that is html code which gets called form and original PHP file. Sound confusing well it is.
So what I have tried in the main php file is :
- Code: Select all
include "../templates/template.php";
Then in the template.php file I have a regular html page that calls on a server side include but since that does not seem to work I switched it to a php include like so:
- Code: Select all
<?php include ("/includes/head.html"); ?>
but when I go to run the original file all I get is a blank page and when I view source it shows:
- Code: Select all
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=windows-1252">
<META content=PFAUPCXLEO name=SKYPE_FRAMEID></HEAD>
<BODY></BODY></HTML>
so I don't know what is going wrong.
Any help would be greatly appreciated

