pulling formation from a text file to display on site

Discussion in 'Programming' started by CircleOfLinks, May 24, 2009.

  1. #1
    Hey guys,

    I need your help with something really important.

    I'm just wondering how can i have a website i built in PHP refer to a .TXT file.

    Reason im asking is i've built a site for a customer and now she wants to be able to edit a page by her self. I was wondeing if there was a way i can have the page refer to an external .txt file. That way she can edit it and upload it to the server and it automatically refers to it. (it would be plain text with a hyperlink)

    thanks for your help in advanced
     
    CircleOfLinks, May 24, 2009 IP
  2. Bohra

    Bohra Prominent Member

    Messages:
    12,573
    Likes Received:
    537
    Best Answers:
    0
    Trophy Points:
    310
    #2
    <?
    include 'file.txt';
    ?>

    The code will be automatically included
     
    Bohra, May 24, 2009 IP