[snip] 755 lines of code that should have never been posted in its entirity, especially without line numbers or something saying <---HERE IS THE PROBLEM LINE [/snip] Dude, when you have a syntax error like this only post 20 or 30 lines of the code surrounding the line and then point out which line is #foo, 'k? Your HEREDOC appears to be messed up. On line 623 the closing identifier is not in first column of the line (when I cut n paste the code into an editor. That is a requirement for the heredoc. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php