Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Diagnostics -> Command Prompt -> PHP

    2.1 Snapshot Feedback and Problems - RETIRED
    3
    3
    1.2k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • F
      fLoo
      last edited by

      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

      1 Reply Last reply Reply Quote 0
      • jimpJ
        jimp Rebel Alliance Developer Netgate
        last edited by

        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.

        Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

        Need help fast? Netgate Global Support!

        Do not Chat/PM for help!

        1 Reply Last reply Reply Quote 0
        • P
          phil.davis
          last edited by

          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…

          As the Greek philosopher Isosceles used to say, "There are 3 sides to every triangle."
          If I helped you, then help someone else - buy someone a gift from the INF catalog http://secure.inf.org/gifts/usd/

          1 Reply Last reply Reply Quote 0
          • First post
            Last post
          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.