CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Need a Custom or Prewritten Perl Program?: I need a program that...:
I need to include text file on web page.

 



AnthonyA
Deleted

Jul 8, 2000, 10:57 PM

Post #1 of 4 (1150 views)
I need to include text file on web page. Can't Post

I have been looking for a script that will grab a text file and put it in the webpage.

I would like to be able to update information without going into html coding just by changing the text file.

Thanks


mike
User

Jul 9, 2000, 11:09 AM

Post #2 of 4 (1150 views)
Re: I need to include text file on web page. [In reply to] Can't Post

Hello,

Does your server have SSI capability? Because you can just use server side includes to do a simple task like that. All the tag looks like is this where you want the text file to show up: <!--#include virtual="/textfile.txt"-->.

- Mike


AnthonyA
Deleted

Jul 9, 2000, 11:32 AM

Post #3 of 4 (1150 views)
Re: I need to include text file on web page. [In reply to] Can't Post

I think it does. I have a forum very similar to this one that does includes, and it works, but if I write a page with the include it displays nothing.

Here is a test I did.

<html>
<title></title>
<body>
<!--#include virtual="/text.txt"-->
</body>
</html>

The text file is in same the folder as the html page.


AnthonyA
Deleted

Jul 9, 2000, 11:45 AM

Post #4 of 4 (1150 views)
Re: I need to include text file on web page. [In reply to] Can't Post

I got it working!

Just need to save as shtml.

Thanks.

 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives