Webmastersite.net
Register Log In

parse error in decodeit

Title parse error in decodeit
Description commonfuncs.php(336) : eval()'d code on line 545
Message Text ver 3.13 I see this error in my errorlog PHP Parse error: parse error in /home/jwalling/public_html/wsnlinks_nz/commonfuncs.php(336) : eval()'d code on line 545 I haven't been able to catch the error by observing the debug messages. The php code involved is function decodeit($item, $full = '') { if (is_numeric($item) || $item == '') { return $item; } $item = str_replace(';', ';', $item); $item = str_replace('}', '}', $item); $item = str_replace('{', '{', $item); $item = str_replace('>', '>', $item); $item = str_replace('<', '<', $item); $item = str_replace('"', """, $item); <========= Line 545 $item = stripslashes($item); if ($full != '') $item = str_replace("'", "'",$item); $item = str_replace('"', '"', $item); $item = str_replace("'", "'", $item); return $item; } See the text link for a CLEAN copy of the PHP code above. http://www.fulgeo.com/wsnlinks_nz/_archive/decodeit.txt If I could trap the error with the $item value, I would have a better handle. How can I do that?
Rating
  • 0/5
  • 1
  • 2
  • 3
  • 4
  • 5
0/5 based on 0 votes.
Ownership jwalling
Views 450 views. Averaging 0 views per day.
Similar Topics
Submission Date Jan 13, 2005 - 5:03 PM