Comment modes behavior in HTML and PHP

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I have a PHP script, as follows:
<!--
   <?php
       echo "should this be echoed ?";
   ?>
-->

As expected, the browser shows nothing,
but when I view Source in the browser, I see:
<!-- start HTML comment
 should this be echoed ?-->

Shouldn't it be just: <!--  -->, without the echo result ?
I don't expect PHP to be active between <!--     -->.

TIA, Cor

[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux