Forum Moderators: coopster
Parse error: parse error, unexpected T_STRING in /home/neimanre/public_html/procs/lib/functions.php(173) : eval()'d code on line 1
Not sure what the 173 means.
I'm assuming it means the line number. So, here is the code. 173 is the second from the bottom.
}
else {
if ($ph_debug36)
echo "<B>VarSub@".(__LINE__ + 1)."</B> \$ph_SubVal = \$$ph_SubVar;<BR>";
eval("\$ph_SubVal = \$$ph_SubVar;");
}
I haven't used the "evil() [us2.php.net]" function lately, and don't remember the syntax offhand, but I'd try commenting out the eval() line to see if and where the error gets thrown. That surely won't fix the problem but it might give some clues while waiting for someone else to offer better advice.
I wish you well.
echo "<B>VarSub@".(__LINE__ + 1)."</B> \$ph_SubVal = \$$ph_SubVar;<BR>";
...and will start like:
VarSub@...
What follows that is the values in $ph_SubVal and $$ph_SubVar--which are the values used in eval().
If there isn't a line that starts like that above the error message, temporarily comment out the echo line by putting two slashes in front of it, like:
else {
//if ($ph_debug36)
echo "<B>VarSub@".(__LINE__ + 1)."</B> \$ph_SubVal = \$$ph_SubVar;<BR>";
The whole section of code that you posted appears to simply be a debugging condition, so the script already knows that something is wrong farther up in the code, and it has something to do with $ph_SubVal and/or $$ph_SubVar.