Quick question about htaccess files

Discussion in 'PHP' started by eranet, May 26, 2011.

  1. #1
    We all know that for html/php/etc this line is used to identify when a section of coding begins:

    <!-- Text -->

    Is there one for htaccess files? That line is not counted as part of the code, so what would be one for htaccess?
     
    eranet, May 26, 2011 IP
  2. dazst

    dazst Active Member

    Messages:
    115
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    78
    #2
    No, this is just an HTML comment:
    <!-- coment here -->
    It does not mean code begins here, although most scripts include comments that explain what the code ahead does.
     
    dazst, May 26, 2011 IP
  3. bogi

    bogi Well-Known Member

    Messages:
    482
    Likes Received:
    16
    Best Answers:
    2
    Trophy Points:
    140
    #3
    Do you mean comments? The line you mentioned above works in HTML but not in PHP.
    If you want to comment in .htaccess, you can use a leading #.

    Note: You have to start with # character every line you want to comment out.
     
    bogi, May 28, 2011 IP
  4. eranet

    eranet Peon

    Messages:
    96
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Yes that's what I meant! Wrong use of words, thanks!
     
    eranet, Jun 5, 2011 IP