1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

HTML query

Discussion in 'Programming' started by Weirfire, Apr 26, 2005.

  1. #1
    In PHP there is the function "includes" which allows you to use other files in your file.

    I was wondering if there was any way of doing this with HTML? I had a feeling that I've seen it before but I wasn't sure. Can anyone clarify? :)
     
    Weirfire, Apr 26, 2005 IP
  2. noppid

    noppid gunnin' for the quota

    Messages:
    4,246
    Likes Received:
    232
    Best Answers:
    0
    Trophy Points:
    135
    #2
    Put this in your .htaccess file.

    AddType application/x-httpd-php .php .html
     
    noppid, Apr 26, 2005 IP
  3. Weirfire

    Weirfire Language Translation Company

    Messages:
    6,979
    Likes Received:
    365
    Best Answers:
    0
    Trophy Points:
    280
    #3
    What does that do noppid?

    I'm looking to insert specific filenames into each different web page.

    e.g. Use the same navigation for a number of the pages on my site where I would use the PHP command <?php include "Nav.php"; ?> normally.

    Does this htaccess thing do the same?
     
    Weirfire, Apr 26, 2005 IP
  4. noppid

    noppid gunnin' for the quota

    Messages:
    4,246
    Likes Received:
    232
    Best Answers:
    0
    Trophy Points:
    135
    #4
    Oh I see what ya mean. I'm drawing blanks ATM but I'm thinking link, not sure.
     
    noppid, Apr 26, 2005 IP
  5. Weirfire

    Weirfire Language Translation Company

    Messages:
    6,979
    Likes Received:
    365
    Best Answers:
    0
    Trophy Points:
    280
    #5
    Nope I dont think so. I use link to include my css but I think, dont quote me, but I think you can only use it in the head.

    It's the same kind of thing as frames except its not a frameset I'm using.

    I just thought there's bound to be something for HTML as it keeps everything so tidy and reuseable.
     
    Weirfire, Apr 26, 2005 IP
  6. dct

    dct Finder of cool gadgets

    Messages:
    3,132
    Likes Received:
    328
    Best Answers:
    0
    Trophy Points:
    230
    #6
    dct, Apr 26, 2005 IP
  7. noppid

    noppid gunnin' for the quota

    Messages:
    4,246
    Likes Received:
    232
    Best Answers:
    0
    Trophy Points:
    135
    #7
    I did this a while back, but I'm lost for an answer now. I probably didn't work it out and did something else, I just can't remember. :D
     
    noppid, Apr 26, 2005 IP