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 6 of 6
  1. #1
    New to the CF scene
    Join Date
    Jun 2007
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question Importing Flat File into web page

    Still learning slowly.... What I would like to do:

    Imagine a fluid left side of webpage for data, with fixed right side links.
    I have about 20 flat files (and increasing), I wish to list on the fixed right side of page.

    I want to be able to display these flat files, on the fluid side of the page, when someone clicks on the filename which is on the fixed side. I can do this for one file, how to make it so I can keep adding files and they display, when someone clicks on them. I do not want to have a gazillion page to updated, just the flat files.

    I have built my webpages from a template I created (with much difficulty) using CSS.

    Just an old nuby here, always wanting to know how to do something else better, easier or otherwise.

    Thanks much

    Coulee

  • #2
    Regular Coder
    Join Date
    Feb 2007
    Location
    Canada
    Posts
    924
    Thanks
    10
    Thanked 56 Times in 55 Posts
    Check out php includes. http://php.net
    or a CMS http://snewscms.com

  • #3
    New to the CF scene
    Join Date
    Jun 2007
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Thanks

    Thanks for the update, will check them out. Sometimes we just need a push.

    tradert

  • #4
    Master Coder
    Join Date
    Apr 2003
    Location
    in my house
    Posts
    5,211
    Thanks
    39
    Thanked 201 Times in 197 Posts
    Have you a willingness to learn perl or another server side language?

    You could have one section of code read through your dir containing the flat files to index them and another script to open the chosen file, read it into the page so that its contents output in the way you choose.

    Thats one script for the index and one for the output of the file content. That said, you would need a series of files to enable updating through your web browser but these wouldn't be too far from the other two.

    You could do it in perl and I imagine in php.

    hth

    bazz

  • #5
    Regular Coder
    Join Date
    Feb 2007
    Location
    Canada
    Posts
    924
    Thanks
    10
    Thanked 56 Times in 55 Posts
    Another option might be cutenews
    http://cutephp.com/

    or Xpression News
    http://xpression.hogsmeade-village.com/
    Last edited by jlhaslip; 01-07-2008 at 03:41 AM.

  • #6
    New to the CF scene
    Join Date
    Jun 2007
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by bazz View Post
    Have you a willingness to learn perl or another server side language?

    You could have one section of code read through your dir containing the flat files to index them and another script to open the chosen file, read it into the page so that its contents output in the way you choose.

    Thats one script for the index and one for the output of the file content. That said, you would need a series of files to enable updating through your web browser but these wouldn't be too far from the other two.

    You could do it in perl and I imagine in php.

    hth

    bazz
    Thanks for the ideas on Perl and PHP. Time is not on my side to learn and relearn at this time. I work too many hours for that. I took a Perl class about 5 years ago, and was moving forward writing scripts for all the Cisco/MS apps we did, but then the college I worked at outsourced us. End of story, no more Cisco/MS things to do, and lost the time and initiative to keep doing while looking for new work. I'm 56 now, and I've lost so much in the last five years, I doubt I could go back and keep up. Too many changes, and honestly no one wants to hire an old fart, no matter how good you were in voice-video-data. Just life. I do this just for the love of what I did for 20 years, and my personal needs. Thanks though, I can surely think it thru when there is time.


  •  

    Posting Permissions

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