Here the presence of /* was detected as starting of multi line comment. I am not a PHP programmer but others told me that code is correct and the syntax highlighting is flawed. In other editors (like homesite) the syntax highlighting works correct. Is it a bug in Notepad++ or a wrong code? Is something need to be escaped with \ ?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I am a Java programmer and user of Notepad++ for some time. Now I was reviewing a PHP code and something caught my attention.
$rval = `mv /usr/local/apache/htdocs/cms/testfile/* /usr/local/apache/htdocs/cms/final`;
Here the presence of /* was detected as starting of multi line comment. I am not a PHP programmer but others told me that code is correct and the syntax highlighting is flawed. In other editors (like homesite) the syntax highlighting works correct. Is it a bug in Notepad++ or a wrong code? Is something need to be escaped with \ ?
Use ' instead of `.
Sorry, forgot to login while posting last post.
I think ` is used to run system command? So replacing it by ' means making it string, which I don't want. The code looks correct to me.