PDA

View Full Version : Parse Error


TRStealth
05-11-2005, 05:37 PM
I have an annoying error:

Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING in /home/cnxadmin/public_html/forums/includes/functions.php on line 2024

Not sure what to do about it. I've tried getting a fresh functions.php and reapplying the code it tells me, but I always end with the same error.

Here's the relevant lines:


$debughtml = '<hr />';
//$debughtml .= "<ul><a href=\"#\" onclick=\"set_cookie('vbulletin_collapse', ''); window.location=window.location\">vbulletin_collapse</a>:<br /><li>" . str_replace("\n", '</li><li>', $_COOKIE['vbulletin_collapse']) . "</li></ul>";
$debughtml .= "\n<form name=\"debugger\" action=\"\">\n<div align=\"center\">\n<!--querycount-->Executed <b>$query_count</b> queries<!--/querycount-->" . iif($_TEMPLATEQUERIES, " (<b>" . sizeof($_TEMPLATEQUERIES) . "</b> queries for uncached templates)", '') . " . ";
$debughtml .= " (<a href=\"" . htmlspecialchars_uni(SCRIPTPATH) . iif(strpos(SCRIPTPATH, '?') '?')'?')'?')'?')=== false, '?', '?','?','?','?','&amp;') . "tempusage=1\">Template Usage</a>) (<a href=\"" . htmlspecialchars_uni(SCRIPTPATH) . iif(strpos(SCRIPTPATH, '?') '?')'?')'?')'?')=== false, '?', '?','?','?','?','&amp;') . "explain=1\">Explain</a>)<br />\n";
$debughtml .= "<select>\n\t<option>(Page Generated in $totaltime Seconds)</option>\n$messages</select>\n";


The second to last line is 2024.

Link14716
05-12-2005, 10:43 AM
Start with a fresh functions.php and don't use DreamWeaver to edit it.

carolmyt
05-12-2005, 05:14 PM
Yes, kill dreamweaver now, and kill it dead. My site recently had a whole slew of problems because of dreamweaver.