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 3 of 3
  1. #1
    New to the CF scene
    Join Date
    Aug 2005
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Obtain info from .txt file

    Hello,

    Could someone please tell me how to obtain text that is contained within a .txt file on the server.

    Example :
    I want my index.htm page to display (via javascript) the number that is stored in my "hits.txt" file in the same directory.

    Thanks.

  • #2
    Regular Coder
    Join Date
    Feb 2005
    Posts
    525
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Not possitive, but I would guess you need a server side language for that, such as PHP. fopen() fread() fclose().
    Single Paradox
    My Site (Under construction)

    Not too bad for a 15 year old

  • #3
    Senior Coder
    Join Date
    Mar 2005
    Location
    Portsmouth UK
    Posts
    4,505
    Thanks
    3
    Thanked 501 Times in 488 Posts


  •  

    Posting Permissions

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