MyBB Community Forums

Full Version: Unexpected ';' on line 740
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I've decided to duplicate the current code instead of altering it for my needs (separate forum). While trying to test, however, I get this error:

Parse error: syntax error, unexpected ';' on line 740

Line 740 is "$code = str_replace("\t", '    ', $code);"

$code = str_replace('$', '$', $code);
       $code = preg_replace('#\$([0-9])#', '\\\$\\1', $code);
       $code = str_replace('\\', '\', $code);
       $code = str_replace("\t", '    ', $code);
       $code = str_replace("  ", '  ', $code);
the highlight already makes it obvious... if your editor doesn't have syntax highlighting, you should use one that does. Smile
The below will not work because you're trying to replace two backslashes with an escape character.

$code = str_replace('\\', '\', $code);
(2011-02-06, 04:22 PM)frostschutz Wrote: [ -> ]the highlight already makes it obvious... if your editor doesn't have syntax highlighting, you should use one that does. Smile
I hightly recommend you use Netbeans or Notepad ++
(2011-02-06, 05:13 PM)Conor Calby Wrote: [ -> ]
(2011-02-06, 04:22 PM)frostschutz Wrote: [ -> ]the highlight already makes it obvious... if your editor doesn't have syntax highlighting, you should use one that does. Smile
I hightly recommend you use Netbeans or Notepad ++

Thanks! I found the issue right away! Big Grin
For Windows, I prefer TextPad
(2011-02-06, 08:58 PM)pavemen Wrote: [ -> ]For Windows, I prefer TextPad

ConTEXT is another good one.