Unexpected character in input: '\' (ASCII=92) state=1
Posted: Sun Nov 04, 2007 11:47 pm
I'm trying to addslashes() to some text but it returns this error
I also tried the following
And got this error
On line 158 is the following code:Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /var/flexshare/shares/php/development/cms/cms/modules/pages/functions-pages.php(158) : eval()'d code on line 1
Parse error: parse error, unexpected $ in /var/flexshare/shares/php/development/cms/cms/modules/pages/functions-pages.php(158) : eval()'d code on line 1
Code: Select all
$template = addslashes($template);Code: Select all
$template = str_replace("'", "'", $template);
$template = str_replace("\"", """, $template);Is there something in the code above that's causing the error or is there something else.Parse error: parse error, unexpected '&' in /var/flexshare/shares/php/development/cms/cms/modules/pages/functions-pages.php(158) : eval()'d code on line 317