Loading ...
Sorry, an error occurred while loading the content.

Re: [NH] Use of comment tags

Expand Messages
  • Rudolf Horbas
    This is actually not the right way to comment out PHP. You re just breaking the opening PHP tag, thus converting the PHP code to a string which is output
    Message 1 of 6 , May 8 12:49 PM
    • 0 Attachment
      This is actually not the right way to comment out PHP. You're just
      breaking the opening PHP tag, thus converting the PHP code to a string
      which is output invisibly in the HTML comment. No harm done here, but I
      could easily come up with a scenario where this might not be a good idea.

      The right way would be:

      <?php // include("w2bot_nav.php"); ?>

      or

      <?php # include("w2bot_nav.php"); ?>

      or

      <?php /* include("w2bot_nav.php"); */ ?>

      Rudi

      Mike Breiding - Morgantown WV schrieb am 08.05.2013 17:53:
      >
      > On 5/8/2013 8:15 AM, John Wallace wrote:
      >> That comment tags don't stop the PHP from working on the 'include' navigation.
      >> Try using // before the include if you don't want that to show.
      > Hi John,
      > That worked. <// ?php include("w2bot_nav.php"); ?>
      > Thanks!
      > -Mike
      >>
      >> John Wallace
      >> Pontiac Power Rules !!!
      >> www.wallaceracing.com <http://www.wallaceracing.com/>
      >>
      >>
      >>
      >> _____
      >>
      >> From: ntb-html@yahoogroups.com [mailto:ntb-html@yahoogroups.com] On Behalf Of ert.mike
      >> Sent: Wednesday, May 08, 2013 7:53 AM
      >> To: ntb-html@yahoogroups.com
      >> Subject: [NH] Use of comment tags
      >>
      >>
      >>
      >>
      >> This page: http://epicroadtrips.us/2013/scotland/
      >>
      >> has this section commented out:
      >> <!--<div id="navwrapper"> <div id="navigation"><?php include("w2navigation.php"); ?></div>
      >> </div>
      >> <div id="footernav"> <div id="navcontainer"><?php include("w2bot_nav.php"); ?></div>
      >> </div>-->
      >>
      >> But, the menus are still showing and with no CSS applied.
      >> Can anyone explain what is going on?
      >>
      >> Thanks,
      >> -Mike


      --
      B├╝rgermeister-Schwaiger-Str. 16 85567 Grafing b. M├╝nchen
      Fon (08092) 857 257 Mobil 0178 158 96 53 Fax (08092) 230 1667
      http://www.hypotext.de JABBER & AIM: rhorbas | ICQ: 322826769
    Your message has been successfully submitted and would be delivered to recipients shortly.