I don't know the proper term for this, but here is what I want to do: read data from an external .txt file or .doc file into html page. If the file is changed and re-saved, the website automatically changes as well. I know that css style sheets are similar to this - you load your settings into a css file and if you make a change, the website updates accordingly. But a css file is just for visual stlyes. I actually want the "words" from the file to be displayed and updated accordingly. If you understand what I mean, please advise how to do this. Thanks :)
lightningrod66 0 Newbie Poster
Recommended Answers
Jump to PostFor as far as I know, there is no easy fix for this problem. I have seen a solution with javascript some time ago, but mostly it requires the use of php.
Maybe, if your site is hosted on an Apache server, you could use an Apache directive: <!--#include …
Jump to PostI manage my own Apache server and have a virtual site where I allow includes. The configuration for this (in httpd.conf) is as follows:
# ------------------------------------------------- # vvvnew.colhome.net # ------------------------------------------------- <VirtualHost *:80> DocumentRoot "/var/www/vvvnew/htdocs" ServerName vvvnew.colhome.net ErrorLog /var/log/httpd/vvvnew/error_log CustomLog /var/log/httpd/vvvnew/access_log combined <Directory "/var/www/vvvnew/htdocs"> Options +Includes AddType text/html …
Jump to PostYes the http.conf shouldn't have to be modified for simple read and write of text files. The http.conf is more used for things like enabling advanced functions like mod_rewrite that aren't normally enabled by default.
Look into
All 11 Replies
colweb 13 Posting Whiz
lightningrod66 0 Newbie Poster
colweb 13 Posting Whiz
lightningrod66 0 Newbie Poster
colweb 13 Posting Whiz
lightningrod66 0 Newbie Poster

ingeva
colweb 13 Posting Whiz
lightningrod66 0 Newbie Poster
buddylee17 216 Practically a Master Poster

ingeva
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.