PDA

View Full Version : HELP: I need help with the PHP Parse Header.


12-30-2000, 05:39 AM
I've figured out how to use it Now i just need to know how do i get this to work where the require() shows up between those two?

$header = "
<html>

<head>
<title>Class Act Dance . Com</title>
<link type=\"text/css\" href=\"page.inc.css\" rel=\"stylesheet\">
</head>

<body bgcolor=\"#A5B5CD\">
<table align=\"center\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" width=\"800\">
<tr>
<td valign=\"top\" align=\"left\" width=\"125\" height=\"190\"><img src=\"../images/top-left.gif\"></td>
<td valign=\"top\" align=\"center\" bgcolor=\"#FFFFFF\"><p align=\"center\"><img src=\"../images/top.gif\"></td>
<td valign=\"top\" align=\"right\" width=\"125\" height=\"190\"><img src=\"../images/top-right.gif\"></td>
</tr>
<tr>
<td width=\"125\" valign=\"top\" background=\"../images/layout-left-bg.gif\" align=\"left\">";
require("/path/to/leftnav.inc.php");
$header .= "</td><td valign=\"top\" bgcolor=\"#FFFFFF\"><!-- CONTENT -->";

12-30-2000, 01:26 PM
[code]$header = "
<html>

<head>
<title>Class Act Dance . Com</title>
<link type=\"text/css\" href=\"page.inc.css\" rel=\"stylesheet\">
</head>

<body bgcolor=\"#A5B5CD\">
<table align=\"center\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" width=\"800\">
<tr>
<td valign=\"top\" align=\"left\" width=\"125\" height=\"190\"><img src=\"../images/top-left.gif\"></td>
<td valign=\"top\" align=\"center\" bgcolor=\"#FFFFFF\"><p align=\"center\"><img src=\"../images/top.gif\"></td>
<td valign=\"top\" align=\"right\" width=\"125\" height=\"190\"><img src=\"../images/top-right.gif\"></td>
</tr>
<tr>
<td width=\"125\" valign=\"top\" background=\"../images/layout-left-bg.gif\" align=\"left\">";
$header .= implode("", file("http://www.domain.com/path/to/leftnav.inc.php"));
$header .= "</td><td valign=\"top\" bgcolor=\"#FFFFFF\"><!-- CONTENT -->";

12-30-2000, 10:50 PM
Ed... when i go to my forum it says

Parse error: parse error in Unknown on line 5

where is that?

[Edited by trilizio on 12-31-2000 at 03:59 AM]