Forum Moderators: coopster
What it does is opens a template (the standard page template) and processes the lines individually.
Sees its 'search' commentary line, and adds its HTML using 'print'.
Problem is, by using 'print' it prints php code right on the page - that code does NOT get processed before it is sent out.
I really need the lines before and after search to go through PHP and get processed, almost like an include. But I can't revamp the whole script to use includes, it needs to find its search line.
Some HTML
about 140 lines of it.
<?
$somephp = 'Some php';
?>
More HTML
Now for the search file
while ($template_line < $numtlines)
{
if (!stristr($template[$template_line], "<!--ZOOMSEARCH-->")) {
print($template[$template_line]);
$template_line++;
}
else {
break;
}
}