Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    New to the CF scene
    Join Date
    May 2005
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Help! External Text Files

    My client wants to use external text files to update content on his web page. Is there an easy way to do this without using php pr xml? thanks!

  • #2
    Senior Coder
    Join Date
    Dec 2004
    Location
    Essex, UK
    Posts
    2,636
    Thanks
    0
    Thanked 0 Times in 0 Posts
    You can do it with server side includes -

    In PHP -

    <?php include("file.txt") ?>

    Or like so -

    <!-- #INCLUDE FILE="file.txt" -->

    EDIT - Oops thought you said 'with PHP' ... well try the second method anyway. And, Forgot to say you need to use .shtml instead of .html.
    Last edited by mark87; 05-26-2005 at 09:47 PM.

  • #3
    New to the CF scene
    Join Date
    May 2005
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I found that <!--#include virtual="textfile.txt" --> works better.

    matt

  • #4
    Senior Coder gsnedders's Avatar
    Join Date
    Jan 2004
    Posts
    2,340
    Thanks
    1
    Thanked 7 Times in 7 Posts
    Have a look at this thread


  •  

    Posting Permissions

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