0
Thanks

A few words of thanks would be greatly appreciated.

PHP PARSE ERROR: UNEXPECTED '<' IN ... EVAL()'D CODE ON L


PHP may encounter parse errors. These parse errors occur due to incorrect input of the syntax. This type of syntax error can occur while using the eval( ) function as well. This error occurs most often due to the presence of PHP around the PHP strings which has to be evaluated. The opening tags create the errors and once they are removed the problem is solved. The closing tags can be used to quit the model. Insights on webmaster will definitely help solve the problems of PHP parse errors.


Issue


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 is probably due to the presence of PHP tags around the string that needs to be evaluated:
  • As stated in the PHP documentation, PHP opening tags must not be present to assess a string. To fix the problem simply delete the opening tag of the string.
  • Note: you can still use the PHP closing tags to quit from the PHP mode


=====
0
Thanks

A few words of thanks would be greatly appreciated.

Ask a question
CCM is a leading international tech website. Our content is written in collaboration with IT experts, under the direction of Jeff Pillou, founder of CCM.net. CCM reaches more than 50 million unique visitors per month and is available in 11 languages.

0 Comments