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 PostWell there is not much different when running Apache on Windows. The paths are different, so on Linux you use:
LoadModule include_module /usr/lib/httpd/modules/mod_include.so
and for Windows:
LoadModule include_module modules/mod_include.so
Then inside the <Directory></Directory> where your site is parked you add:
Options …
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.