...

View Full Version : Importing Flat File into web page



TraderT
01-06-2008, 12:34 PM
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

jlhaslip
01-06-2008, 05:55 PM
Check out php includes. http://php.net (http://php.net)
or a CMS http://snewscms.com

TraderT
01-07-2008, 12:31 AM
Thanks for the update, will check them out. Sometimes we just need a push.

tradert

bazz
01-07-2008, 12:55 AM
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

jlhaslip
01-07-2008, 04:35 AM
Another option might be cutenews
http://cutephp.com/

or Xpression News
http://xpression.hogsmeade-village.com/ (http://xpression.hogsmeade-village.com/serve.php)

TraderT
01-08-2008, 02:18 AM
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.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum