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

Diagnostics -> Command Prompt -> PHP

Scheduled Pinned Locked Moved 2.1 Snapshot Feedback and Problems - RETIRED
3 Posts 3 Posters 1.2k Views
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 Dec 21, 2012, 2:49 PM

    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
    • J
      jimp Rebel Alliance Developer Netgate
      last edited by Dec 21, 2012, 4:39 PM

      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 Dec 21, 2012, 4:39 PM

        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
        3 out of 3
        • First post
          3/3
          Last post
        Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
          This community forum collects and processes your personal information.
          consent.not_received