rfigley wrote:Parse error: parse error in /home/account/public_html/admin/chapter_page_generator3.php on line 48
Code: Select all
<?php
fputs($fp, "<HTML><HEAD>");
fputs($fp, "<TITLE>" . $chapter . "</TITLE>");
fputs($fp, "<META HTTP-EQUIV=Content-Type CONTENT=text/html; charset=iso-8859-1> ");
fputs($fp, "<link rel=stylesheet type=text/css href=npi.css>");
fputs($fp, "</HEAD>");
fputs($fp, "<BODY BGCOLOR=#FFFFFF topmargin=0 leftmargin=0>");...blah, blah..
/*HERE IS THE INCLUDE, I know the syntax is wrong but having difficulty with it. */
fputs($fp, include('incl_chapter_header.php'));
//Or something like this?
fputs($fp, "<? include('incl_chapter_header.php') ?>");
?>
ok lets shorten this a bit
Code: Select all
<?php
fputs($fp, "<HTML><HEAD><TITLE>$chapter</TITLE><META HTTP-EQUIV=Content-Type CONTENT=text/html; charset=iso-8859-1><link rel=stylesheet type=text/css href=npi.css></HEAD>");
fputs($fp, "<BODY BGCOLOR=#FFFFFF topmargin=0 leftmargin=0>");...blah, blah..
fputs($fp, "<? include('incl_chapter_header.php')?>"); // is this line 48?
?>
PHP should not have a problem with the <??> in the fputs function. It will, typically, blindly write whatever is in there until it gets to the next ". (this is my own personal expereicnce) Though hoestly I've never tried "<?..?>" specifically. If you could specify which line is line 48, then I'll try to work our a solution for that line.