Re: displaying output of a text file in html
From: Itsme (Itsme_at_nospam.com)
Date: 10/19/04
- Previous message: Somchai U.: "Re: displaying output of a text file in html"
- In reply to: Somchai U.: "Re: displaying output of a text file in html"
- Next in thread: Somchai U.: "Re: displaying output of a text file in html"
- Reply: Somchai U.: "Re: displaying output of a text file in html"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 19 Oct 2004 11:16:51 -0400
That part is okay, as the perl script's output is displayed in html when I run
it from a browser.
But how do I call that script from within a webpage, to display the output in
the webpage.
Thanks,
me
"Somchai U." wrote:
> 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: Somchai U.: "Re: displaying output of a text file in html"
- In reply to: Somchai U.: "Re: displaying output of a text file in html"
- Next in thread: Somchai U.: "Re: displaying output of a text file in html"
- Reply: Somchai U.: "Re: displaying output of a text file in html"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|