Community

    • Login
    • Search
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    Bug on php script with comments

    Help wanted · · · – – – · · ·
    comments
    2
    4
    2914
    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.
    • Michael Triglianos
      Michael Triglianos last edited by

      If I add a comment line as in // This is a comment on my php script, the script does NOT work, I just get a blank screen when I try to run it. If I take the comment OUT, the script runs.

      This does not happen all the time. I have many comment both with // and with /* …*/ and they work. It only happens once in a while. I just upgraded to 6.9 cause I thought maybe it got fixed somehow after 6.8.8 but it hasn’t.

      I use a lot of commenting in scripts and this is annoying. Anyone else having this problem?

      Claudia Frank 1 Reply Last reply Reply Quote 0
      • Claudia Frank
        Claudia Frank @Michael Triglianos last edited by

        Hello @Michael-Triglianos,

        npp is an editor it doesn’t run scripts/code. How do you execute your code?
        Using cmd and php.exe? Something else?
        Btw. debug->info (available in ? menu) could be helpful as well.

        Cheers
        Claudia

        1 Reply Last reply Reply Quote 0
        • Michael Triglianos
          Michael Triglianos last edited by

          Of course I know it’s a editor. I save to server and run in a browser, just like most people do that write scripts.

          1 Reply Last reply Reply Quote 0
          • Claudia Frank
            Claudia Frank last edited by

            Of course I know it’s a editor.
            I save to server and run in a browser, just like most people do that write scripts.

            Well don’t know how I should understand this …
            Could it be that you use different os systems in regards to where npp runs and on which
            os your webserver is? If so, did you check file integrity?

            Cheers
            Claudia

            Btw. as much information we get as more useful the answers would be - well, that’s waht I assume.

            1 Reply Last reply Reply Quote 0
            • First post
              Last post
            Copyright © 2014 NodeBB Forums | Contributors