Hey guys, trying to run php within embedable templates, from our discussion, i used <cms:php> which seems to work fine, but I ran into this error:
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /home/joicohen/public_html/couch/tags.php(1728) : eval()'d code on line 71
Parse error: syntax error, unexpected T_STRING in /home/joicohen/public_html/couch/tags.php(1728) : eval()'d code on line 71
these 3 lines seem to be causing it:
$v = preg_replace("#(^|[\n ])([\w]+?://[\w]+[^ \"\n\r\t<]*)#ise", "'\\1<a href=\"\\2\" >\\2</a>'", $v);
$v = preg_replace("#(^|[\n ])((www|ftp)\.[^ \"\t\n\r<]*)#ise", "'\\1<a href=\"http://\\2\" >\\2</a>'", $v);
$v = preg_replace("#(^|[\n ])([a-z0-9&\-_\.]+?)@([\w\-]+\.([\w\-\.]+\.)*[\w]+)#i", "\\1<a href=\"mailto:\\2@\\3\">\\2@\\3</a>", $v);
it worked fine when wrapped in php tags before.
thanks for the help
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /home/joicohen/public_html/couch/tags.php(1728) : eval()'d code on line 71
Parse error: syntax error, unexpected T_STRING in /home/joicohen/public_html/couch/tags.php(1728) : eval()'d code on line 71
these 3 lines seem to be causing it:
$v = preg_replace("#(^|[\n ])([\w]+?://[\w]+[^ \"\n\r\t<]*)#ise", "'\\1<a href=\"\\2\" >\\2</a>'", $v);
$v = preg_replace("#(^|[\n ])((www|ftp)\.[^ \"\t\n\r<]*)#ise", "'\\1<a href=\"http://\\2\" >\\2</a>'", $v);
$v = preg_replace("#(^|[\n ])([a-z0-9&\-_\.]+?)@([\w\-]+\.([\w\-\.]+\.)*[\w]+)#i", "\\1<a href=\"mailto:\\2@\\3\">\\2@\\3</a>", $v);
it worked fine when wrapped in php tags before.
thanks for the help
