Diagnostics -> Command Prompt -> PHP
-
Getting "Parse error: syntax error, unexpected $end in /usr/local/www/exec.php(246) : eval()'d code on line 1"
Version: FreeBSD swan 8.3-RELEASE-p5 FreeBSD 8.3-RELEASE-p5 #0: Fri Dec 21 01:25:32 EST 2012 root@snapshots-8_3-amd64.builders.pfsense.org:/usr/obj./usr/pfSensesrc/src/sys/pfSense_SMP.8 amd64
-
What exactly are you putting into the PHP exec box?
it works fine for me when I try some PHP code. And if I leave it blank it does nothing. I don't get any errors.
-
What exactly are you putting in the PHP Execute, Command box?
For example, if you just type in:crud
You get exactly the error message you quote, it is telling you that the PHP it attempted to eval (evaluate - execute) for you ended unexpectedly. Most likely you just need to end the line of code with a semicolon. (or put in the terminating bracket of a function, or…