How I insert a .txt or csv file to a web page that will update automatically?

How I insert a .txt or csv file to a web page that will update automatically?       I am using Dreamweaver CC and the client will be updating the .csv or .txt file.    The client will be updating the .txt or csv file and uploading it.      I want the new data to automatically refresh in the page.
mmm7786Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Jason C. LevineNo oneCommented:
You need to use some form of scripting that will parse the file on page load and output the results.  What exactly is this going to do?
0
mankowitzCommented:
If all you want to do is include a text file, and you have php enabled, you can use a php directive

<?php include("text.txt"); ?>
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
mmm7786Author Commented:
It is going to upload inventory for a small car dealership?     Do you have a recommendation for type of scripting?
0
mankowitzCommented:
This is more complicated than you think. You have to set up some kind of presentation for the uploaded file. The simplest thing to do is have the client upload a text file and you could render it as html or as text. For example, if you host supports php, you could have a file like this:

index.php
--------------
<h1> Welcome to the car dealership </h1>
Here is our current offerings:
<pre><?php include("text.txt"); ?></pre>
Thanks for using our site!
0
Jason C. LevineNo oneCommented:
It is going to upload inventory for a small car dealership?     Do you have a recommendation for type of scripting?

You're actually taking the wrong approach.  You need to start looking into moving away from simple HTML page display and into creating a database-driven display and then give the client the ability to update the database with the inventory CSV via import.

Dreamweaver can actually assist you with a great deal of this but the following has to happen:

1) Your hosting plan needs to support both a server-side scripting language (e.g. PHP) and database (e.g. MySQL).  Most do, but you need to check

2) Someone needs to know basic principles behind creating database-driven content, especially how to create Master-Child displays

3) Someone needs to know how to configure Dreamweaver to access the database and how to make it do recordsets, repeating regions, and dynamic links

4) Someone will need to train the client on how to import data to the MySQL database.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Web Applications

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.