I was checking out this tutourial, and figured I'd try it out on a website I'm working on transitioning to php. Now from what I've read in order for me to set cookies properly, I need to set them before any HTML, which is why I want to use this technique. However when I upload it to my server, it doesn't work, and shows the "$head = <<" tag everywhere. I would like to create a quick login at the top left of the page so members can sign in any time as well as the main login page. Does anyone have any experience using this technique? Or am I better off just putting the php code throught the page?
My server has php version 4.4.2 if it makes a difference.
This is the website as it looks now:
http://www.dvmrs.org/MembersNew/index.php
The code from the tutourial:
<?php
$head = <<<ENDH
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<html>
<head>
<title>Feedback form</title>
</head>
<body bgcolor="white">
<h1 align=center>Feedback form</h1>
ENDH;
$tail = <<<ENDT
<hr>
</body>
</html>
ENDT;
?>
Thanks for the help!