SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Enthusiast steiger's Avatar
    Join Date
    Jun 2001
    Location
    London
    Posts
    48
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Simple Dynamic Content

    I just need the code for a small info bucket on a page that feeds in text from a client-changeable .txt file. Oh, and it needs to respond to CSS formatting.

    Yes, I know I should learn PHP but i'm too damn lazy...

    Cheers.
    www.steigerdesign.com
    Bless your FRGL. LTTL. MNDS.

  2. #2
    I'll take mine raw silver trophy MikeFoster's Avatar
    Join Date
    Dec 2002
    Location
    Alabama, USA
    Posts
    2,560
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Yes, this really needs to be done server-side. Do you have PHP support? I'm not a PHP guru, but it could be as simple as this:
    Code:
    <div class='userText'>
    <?php
      include('userfolder/usertext.txt');
    ?>
    </div>
    Trying to do this on the client-side is going to be much more complicated, and not completely cross-browser.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •