+ Post New Thread
Results 1 to 6 of 6
Web Development Thread, Pull text from txt document into website? in Coding and Web Development; Chaps, anyone know if this is possible? I was wanting some admin staff to be able to put an update ...
  1. #1

    Join Date
    Mar 2007
    Location
    Central Scotland
    Posts
    829
    Thank Post
    12
    Thanked 8 Times in 8 Posts
    Rep Power
    19

    Pull text from txt document into website?

    Chaps,

    anyone know if this is possible?

    I was wanting some admin staff to be able to put an update on the internal site by editing a text file - which would then be read by the site and incorporated into it.

    Running IIS6 with ASP etc. Nothing fancy.

    If it's a huge job I won't bother, I can't have them editing the pages directly as they quite simply just mess up too often!

  2. #2

    webman's Avatar
    Join Date
    Nov 2005
    Location
    North East England
    Posts
    8,422
    Thank Post
    645
    Thanked 967 Times in 667 Posts
    Blog Entries
    2
    Rep Power
    328

    Re: Pull text from txt document into website?

    Put anywhere outside of ASP <% and %> code markers:


  3. #3
    tomscaper's Avatar
    Join Date
    Jul 2006
    Posts
    814
    Thank Post
    118
    Thanked 29 Times in 15 Posts
    Rep Power
    23

    Re: Pull text from txt document into website?

    Does anyone know the equivalant for reading a txt file as i would like to dome something like this with our admin staff, but using php and mysql.

  4. #4

    webman's Avatar
    Join Date
    Nov 2005
    Location
    North East England
    Posts
    8,422
    Thank Post
    645
    Thanked 967 Times in 667 Posts
    Blog Entries
    2
    Rep Power
    328

    Re: Pull text from txt document into website?

    In PHP:

    Code:
    <?php
    include("/path/to/document.txt");
    ?>
    See also: fead().

  5. #5
    tomscaper's Avatar
    Join Date
    Jul 2006
    Posts
    814
    Thank Post
    118
    Thanked 29 Times in 15 Posts
    Rep Power
    23

    Re: Pull text from txt document into website?

    thanks for the help

  6. #6

    Join Date
    Mar 2007
    Location
    Central Scotland
    Posts
    829
    Thank Post
    12
    Thanked 8 Times in 8 Posts
    Rep Power
    19

    Re: Pull text from txt document into website?

    Quote Originally Posted by webman
    Put anywhere outside of ASP <% and %> code markers:
    Cheers webman, didn't realise it would be that simple!



SHARE:
+ Post New Thread

Similar Threads

  1. ICT output specification document
    By Jimbo in forum BSF
    Replies: 26
    Last Post: 30th November 2007, 11:32 AM
  2. Document Cameras
    By robert.mabbutt in forum Hardware
    Replies: 6
    Last Post: 17th April 2007, 08:17 AM
  3. Remote Downlevel Document
    By timbo343 in forum Windows
    Replies: 2
    Last Post: 21st December 2006, 02:24 PM
  4. Electronic Document Storage
    By ICTNUT in forum Windows
    Replies: 7
    Last Post: 28th May 2006, 03:50 PM
  5. Text WEP key for hex input
    By NetworkGeezer in forum Wireless Networks
    Replies: 2
    Last Post: 16th March 2006, 08:16 PM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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