• Login
Community
  • Login

Bug on php script with comments

Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
comments
4 Posts 2 Posters 3.3k 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.
  • M
    Michael Triglianos
    last edited by Mar 23, 2016, 3:15 PM

    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?

    C 1 Reply Last reply Mar 23, 2016, 3:35 PM Reply Quote 0
    • C
      Claudia Frank @Michael Triglianos
      last edited by Mar 23, 2016, 3:35 PM

      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
      • M
        Michael Triglianos
        last edited by Mar 24, 2016, 4:34 PM

        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
        • C
          Claudia Frank
          last edited by Mar 24, 2016, 5:12 PM

          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
          3 out of 4
          • First post
            3/4
            Last post
          The Community of users of the Notepad++ text editor.
          Powered by NodeBB | Contributors