When a php file is executed using the PHPeval function, the following error occurs: Parseerror: syntaxerror, unexpectedineval. PHP (5): eval () dcodeonline1. After checking the php document, we found that eval is executed or ?? Contains the code. Solution $ filefile_get_contents (modules. php); $ arreval (?.
When you use the PHP eval function to execute a PHP file, the following error occurs: Parse error: syntax error, unexpected in eval. php (5): eval () d code on line 1 I checked the PHP document and found that eval is executed or? ? Contains the code. Solution $ file = file_get_contents (modules. php); $ arr = eval (?.
When you use the PHP eval function to execute a PHP file, an error is returned:
Parse error: syntax error, unexpected '<' in eval. php (5): eval () 'd code on line 1
Check the PHP document and find that eval is executed or Contains the code.
Solution
$ File = file_get_contents ('Les Les. php ');
$ Arr = eval ('?> '. $ File .'
Note:
There are other forms. If the PHP environment short_open_tag = On, you can also use:
$ Arr = eval ('?> '. $ File .'
Or
Eval ('?> '. $ File );
To understand the eval function, you just need to parse the code in php. The end of the php file does not include?>.
(...)
Read the rest of solves the problem of executing the PHP file eval () 'd code (1 words)
©Lixiphp for LixiPHP, 2013. | Permalink | No comment | Add todel. icio. us
Post tags: eval, PHP
Feed enhanced by Better Feed from Ozh