Version: 3.0.90-CVS (using KDE 3.2.90 (CVS >= 20040117), compiled sources) Compiler: gcc version 3.3.3 20040125 (prerelease) (Debian) OS: Linux (i686) release 2.4.23-1-k7 open any php file and press CTRL+D for "comment". This inserts a "//", but should in most cases use the "#" sign. In some cases, for instance here <html> <head> <title>PHP Test</title> </head> <body> <?php echo '<p>Hello World</p>'; ?> the html comment tags should be used: <!--, resp. -->
How do you come to think, that there should be "#"-style comments in a PHP file? I cannot remember PHP to recognize this as a comment. If we can clearify this issue then i'd like to decrease severity to wishlist, because: a) in a pure php file, there is no <!-- comment -->-style comment b) it would require a rewrite of most of the phpsupport code.
On Saturday 28 February 2004 02:34, Sascha Cunz wrote: > How do you come to think, that there should be "#"-style comments in a PHP > file? I cannot remember PHP to recognize this as a comment. Ups, not? I started learning PHP yesterday. I only knew that it was the wrong comment mark in the html file and start looking for how a comment in php works. AFAIK wikipedia (wikipedia.org) uses php therefore I looked into their source code and found things like: # Static factory methods # function newFromDBkey( $key ) { $t = new Title(); $t->mDbkeyform = $key; if( $t->secureAndSplit() ) making me believe that "#" is the right comment "tag". Looking in the php documentation I found that C/C++ style comments are the right thing--sorry, my mistake. BTW thanks again for the support in kdevelop it really made the start a whole lot easier :-) > If we can clearify this issue then i'd like to decrease severity to > wishlist, because: a) in a pure php file, there is no <!-- comment > -->-style comment > b) it would require a rewrite of most of the phpsupport code. makes sense to me. Thanks.
Can someone explain why this BR is open? Did we forget to close it, or is there still a problem here that I don't understand? (Not unlikely, given my zero knowledge of PHP.)
PHP can use c comments: /* */ c++ comments: // add bash like comments: # But as far as I know c/c++ comments are the way to go. Closing.