Jump to content

[SOLVED] Error in eval()


Fabis94

Recommended Posts

In myBB global.php i messed something up in this place:

 

if ($flag == 1){
eval("\$footer = \"".$templates->get("footer").""\";");
}
else
{
eval("\$footer = \"".$fads."".$templates->get("footer").""\";");
}

 

I get these errors for the first eval():

 

Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /home/public_html/mybbtest/mybb/global.php on line 512

Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in /home/public_html/mybbtest/mybb/global.php on line 512

Link to comment
https://forums.phpfreaks.com/topic/165191-solved-error-in-eval/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.