Community
    • Login

    Bug on php script with comments

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    comments
    4 Posts 2 Posters 3.7k Views 2 Watching
    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 TriglianosM Offline
      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 FrankC 1 Reply Last reply Reply Quote 0
      • Claudia FrankC Offline
        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 TriglianosM Offline
          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 FrankC Offline
            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

            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

            With your input, this post could be even better 💗

            Register Login
            • First post
              Last post
            The Community of users of the Notepad++ text editor.
            Powered by NodeBB | Contributors