Re: displaying output of a text file in html
From: Somchai U. (somchai_at_no-email-please.com)
Date: 10/18/04
- Previous message: Bob: "Object Tag, Import tag and plug-in"
- In reply to: Itsme: "displaying output of a text file in html"
- Next in thread: Itsme: "Re: displaying output of a text file in html"
- Reply: Itsme: "Re: displaying output of a text file in html"
- Messages sorted by: [ date ] [ thread ]
Date: Mon, 18 Oct 2004 17:12:28 +0700
You have to configure your web server to support .pl as cgi application.
(For example, put your .pl file in /cgi-bin/). And you should add the line
print "Content-type: text/plain" or text/html at the beginning of perl
script.
Somchai U.
Brainbench MVP for HTML
http://www.brainbench.com/
"Itsme" <Itsme@nospam.com> wrote in message
news:416ED5FB.EFB3301A@nospam.com...
>I have a perl file (.pl) which works fine from a command prompt. It even
>
> displays the desired output when I run it from a web browser.
>
> I want to call this script within my webpage. I am trying to find a
> document which explains what needs to be done.
>
> I am even trying to insert the output (.txt file) generated by that
> script into html so that the page gets dynamically updated as the output
>
> file changes. I am not having any success with that either. Can anyone
> please help with either / both of my questions ?
>
- Previous message: Bob: "Object Tag, Import tag and plug-in"
- In reply to: Itsme: "displaying output of a text file in html"
- Next in thread: Itsme: "Re: displaying output of a text file in html"
- Reply: Itsme: "Re: displaying output of a text file in html"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|