PHP Warning: preg_replace() [<a href='function.preg-replace'>function.preg-replace</a>]: Compilation failed: nothing to repeat at offset 1 in /home/lbbc2012/public_html/internals/Apps/TextService.app.php on line 316
Warning: prge_replace() [function.preg-replace]: Compilation failed: nothing to repeat at offset 1 in /home/lbbc2012/public_html/internals/Apps/TextSevice.app.php on line 316
{exec: new function(“window.location.href = \”https: \\\/\\\/www.lbbclub.com\\\/forum\\\/topic.php?topic_id=8\”;\n”), data: null}
I did not go over everything carefully, in part because it's difficult to read code snippets if you do not wrap them in the forum's [php]...[/php] bbcode tags. One thing I noticed though is that if you are going to use preg_quote(), you should use the optional 2nd parameter to specify the regexp delimiter you plan on using (in this case apparently the "#").
"Please give us a simple answer, so that we don't have to think, because if we think, we might find answers that don't fit the way we want the world to be."
~ Terry Pratchett in Nation
Bookmarks