PHP Code:
foreach ($file_content as $num => $line) {
if (trim($line)) {
if ($content_type == 'HTML' && trim($line) == PHPDIG_EXCLUDE_COMMENT) {
$exclude = true;
}
else if (trim($line) == PHPDIG_INCLUDE_COMMENT) {
$exclude = false;
continue;
}
// and so forth
Hi. The above code in robot_functions.php looks at each line in the file for the PhpDig exclude and include comments. Perhaps try the following.
Instead of having the PhpDig exclude and include comments on one line like so:
Code:
<!-- phpdigExclude -->some stuff<!-- phpdigInclude -->
try putting the PhpDig exclude and include comments on their own separate lines like so:
Code:
<!-- phpdigExclude -->
some stuff
<!-- phpdigInclude -->