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

Last update on October 4, 2009 09:57 AM by jak58
Published by netty5

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.
Best answers for « PHP PARSE ERROR: UNEXPECTED '&lt;' IN ... EVAL()'D CODE ON L » in :
Parse error, unexpected T_STRING, expecting ',' or ';' Show Parse error, unexpected T_STRING, expecting ',' or ';' Example 1 How to solve the problem Example 2 In PHP, a common problem that may arise while creating a PHP file is the parse error T_String. This happens when a programmer (or a...
Parse error: syntax error, unexpected $end Show Parse error: syntax error, unexpected $end When you program in PHP,it is most propable that you have encounterd such error: Parse error: syntax error, unexpected $end in Command line code on line 1 What causes this error? In...
Parsing a binary file in PHP Show Parsing a binary file in PHP When using low level languages like C or Pascal, it is a common procedure, to data in a binary file (a record that can't be translated into text). Using C language, suppose you want to save the value...
File error OLEAUT32.DLL ShowFile error OLEAUT32.DLL If you are having problem with the file OLEAUT32.DLL, download the tool provided by Microsoft for troubleshooting this error. http://download.microsoft.com/... Download the tool MCRepair.exe, and double...
[PHP]Listing the contents of a directory Show[PHP]Listing the contents of a directory With PHP, the contents of a directory and its subdirectories can be viewed. Here below is a recursive function, allowing you to browse directories and subdirectories and view the files: function...
ORA-00600 internal error code, arguments ShowORA-00600 internal error code, arguments This error code is native to internal exceptions from the Oracle programs. It indicates that the process has encountered an unexpected low. It may be due to timeout A corrupted file crash...
Download Code::Blocks Studio ShowCode:: Blocks is a multi-platform IDE (Linux, Mac and Windows) completely coded in C ++. Code:: Blocks is based on a system of plugins which allows to develop it very easily without recompiling it. Since it supports a great number of compilers, the...
Download Codejay - Code Generator ShowCodejay - Code Generator allows you to administer the database of a website. It also allows to create reports for the website and produce several types of source codes: ASP, ASP.NET, COLDFUSION and PHP without writing a single line of code. Codejay...
Download Source Code Spell Checker ShowSource Code Spell Checker is a program that offers to check your lines of code, highlight the errors and to report errors detected. You save valuable time by limiting the reading tedious programming codes. Advantage Via the context menu, you can...
CIE / Lab (L*a*b) coding ShowCIE Coding Colours may be perceived differently depending on individuals and may be displayed differently depending on the peripheral display devices. The International Lighting Commission (Commission Internationale de l'Eclairage, CIE) thus...
Error checking ShowError checking Binary encoding is very practical for use in electronic devices such as computers, in which information can be encoded based on whether an electrical signal is present or not. However, this electrical signal may suffer disturbances...
RGB coding ShowRGB coding The RGB coding (Red, Geen, Blue), developed in 1931 by the International Lighting Commission (Commission Internationale de l'Eclairage, CIE) consists in representing the colour space with three monochromatic rays, with the following...