I'm working on page to generte web pages using fopen: The page generated needs to have includes. So it would seem that I'm generating a page to include php scripting. In effect, nested php. Now berfore you say anything, I know thi is probably not the best way to do this but I have to get this working today and will refine it later. Here's the part of teh code I'm using.
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') ?>");
I'm getting a parse error with both versions I'm trying here.