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

Re: [NH] Use of comment tags

Expand Messages
  • Rudolf Horbas
    In your includes are more HTML comments which close the opened comments. As John pointed out, use PHP comments, or close the html comments before the includes
    Message 1 of 6 , May 8, 2013
    • 0 Attachment
      In your includes are more HTML comments which close the opened comments.
      As John pointed out, use PHP comments, or close the html comments before
      the includes and later reopen them:

      <!-- <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> -->

      HTH
      Rudi

      ert.mike schrieb am 08.05.2013 13:52:
      > 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
    • Mike Breiding - Morgantown WV
      ... Hi John, That worked. Thanks! -Mike
      Message 2 of 6 , May 8, 2013
      • 0 Attachment
        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
        >
        >
        >
        >
        >
        >
        > [Non-text portions of this message have been removed]
        >
        >
        >
        > ------------------------------------
        >
        > Fookes Software: http://www.fookes.com/
        > NoteTab website: http://www.notetab.com/
        > NoteTab Discussion Lists: http://www.notetab.com/groups.php
        >
        > ***
        > Yahoo! Groups Links
        >
        >
        >
        >
        >
      • Mike Breiding - Morgantown WV
        ... Thanks, Rudi! Food for thought... -Mike
        Message 3 of 6 , May 8, 2013
        • 0 Attachment
          On 5/8/2013 10:31 AM, Rudolf Horbas wrote:
          > In your includes are more HTML comments which close the opened comments.
          > As John pointed out, use PHP comments, or close the html comments before
          > the includes and later reopen them:
          >
          > <!-- <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> -->

          Thanks, Rudi!
          Food for thought...
          -Mike


          >
          > HTH
          > Rudi
          >
          > ert.mike schrieb am 08.05.2013 13:52:
          >> 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
          >
          > ------------------------------------
          >
          > Fookes Software: http://www.fookes.com/
          > NoteTab website: http://www.notetab.com/
          > NoteTab Discussion Lists: http://www.notetab.com/groups.php
          >
          > ***
          > Yahoo! Groups Links
          >
          >
          >
          >
          >
        • 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 4 of 6 , May 8, 2013
          • 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.