PDA

View Full Version : parse errors in functions.php


Jacko
04-27-2003, 07:55 PM
went to edit function.php and got this:

Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING in /home/realmods/public_html/forum/admin/functions.php on line 915

Fatal error: Call to undefined function: vbsetcookie() in /home/realmods/public_html/forum/admin/sessions.php on line 204

and the code on line 915 is:

$buffer = str_replace(""", "\"", $buffer);

any ideas on how to fix??

rake
04-27-2003, 08:23 PM
and the line above ends in a semi-colon?

Jacko
04-27-2003, 08:35 PM
i sorted it now by uploading a new uploaded functions.php and had to manually go through it to add my hacks.

Xenon
04-28-2003, 03:45 PM
this line:
$buffer = str_replace('"', '\"', $buffer);

would have helped, also ;)