Using include() in an echo statement
Ok, i am trying to get some code to echo right, the only problem is that i have an include in the code that keeps messing up. Here is the part of the code i am having a problem with:
PHP Code:
echo'
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Echo CMS-- Home</title>
<link href="main.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top_bar">
<div id="top_bar_banner"></div>
<div class="title" id="top_bar_left">
".include("maintitle.txt")."
</div>
<div class="title" id="top_bar_right">
".include ("sitename.txt")."
</div>
</div>
</body>
</html>
';
the includes output: ".include(whatever.txt")." instead of actually including the file. I have also tried ' .include(). ' but that got really messed up. Any ideas?