Bug on php script with comments
-
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?
-
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 -
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.
-
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
ClaudiaBtw. as much information we get as more useful the answers would be - well, that’s waht I assume.