View Full Version : Help! External Text Files
05-26-2005, 09:22 PM
My client wants to use external text files to update content on his web page. Is there an easy way to do this without using php pr xml? thanks!
05-26-2005, 09:41 PM
You can do it with server side includes -
In PHP -
<?php include("file.txt") ?>
Or like so -
<!-- #INCLUDE FILE="file.txt" -->
EDIT - Oops thought you said 'with PHP' ... well try the second method anyway. And, Forgot to say you need to use .shtml instead of .html.
05-30-2005, 02:40 PM
I found that <!--#include virtual="textfile.txt" --> works better.
05-30-2005, 03:01 PM
Have a look at this thread (http://codingforums.com/showthread.php?t=35778)
Powered by vBulletin® Version 4.2.2 Copyright © 2016 vBulletin Solutions, Inc. All rights reserved.