I am still working on my flat-File CMS, so far it looks pretty good, but I have recently made a news section with a Pagination, and I can not figure out why this string right here will not work.
$nstring = "\n\n<?php\n\$i++;\n\$link[\$i] = \"<h1>".$title."</h1><div class='htimeauth'>
|".$date."| <a href='#'>".$author."</a></div> <p>".$story."</p>\";
\nif (!preg_match(\$d, \$link[\$i]))\n
\$link[\$i] = preg_replace ('/one/', 'two', \$link[\$i]);\n?>";
Note: the error I get is.
Parse error: syntax error, unexpected '"' in /publish.php on line 28