Is this possible?

Discussion in 'HTML & Website Design' started by Lipgut, Apr 24, 2009.

  1. #1
    Ok if I don't make sense sorry. Just want to say that now :)

    So I'm trying to control a value , like width ( widht="100%" ) , with a .txt file. So the 100% value would be in the .txt.

    I don't know if I made sense at all..Lol. If you get what I'm saying showing me an example or giving ( or linking ) me a tut would be AMAZING!...

    I have googled this for awhile but don't know how to word it and I know this sites has a good chunk of people who know what they are doing :)

    thanks for reading :D
     
    Lipgut, Apr 24, 2009 IP
  2. Rad_Dev

    Rad_Dev Peon

    Messages:
    62
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    If your write the page with a php (or asp) extension you could use an include statement. Of course your host has to support server side includes for php (or asp) files.

    php example:
    <?php include_once "file.txt"; ?>
    PHP:
    and your value would go in the file.txt fie.
     
    Rad_Dev, Apr 24, 2009 IP
  3. Lipgut

    Lipgut Member

    Messages:
    328
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    35
    #3
    thanks for the reply but i was hoping for java or something along that line. the use will not be hosted from an online host , it will be hosted from my C:// file so I can't use php.. Thanks anyways!
     
    Lipgut, Apr 24, 2009 IP
  4. Lipgut

    Lipgut Member

    Messages:
    328
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    35
    #4
    Bump- I'm sorry but I really want to know if anyone knows how to do such a thing...
     
    Lipgut, Apr 25, 2009 IP
  5. Rad_Dev

    Rad_Dev Peon

    Messages:
    62
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Rad_Dev, May 11, 2009 IP