PHP PARSE ERROR: UNEXPECTED '<' IN ... EVAL()'D CODE ON LINE
Symtoms
When using the eval() function in PHP, the following message is displayed:
PHP Parse error: syntax error, unexpected '<' in /var/www/monfichier.php3(60) : eval()'d code on line 1
Solution
This may due to the fact that the chain needed to be assess by PHP is surrounded by Tag PHP <? > Or <? Php?>.
As stated in the PHP documentation, the chain needed to be assessed must not contain PHP opening tags. Thus, simply delete these tags.
Note that you can use the PHP closing tags to quit PHP mode.