Re: displaying output of a text file in html

From: Somchai U. (somchai_at_no-email-please.com)
Date: 10/18/04

  • Next message: Itsme: "Re: displaying output of a text file in html"
    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 ?
    >


  • Next message: Itsme: "Re: displaying output of a text file in html"

    Relevant Pages

    • Re: How do we get there from here?
      ... server-side-scripted html. ... This is a simple example with very little php scripting. ... means that the version of the php pre-processor on your web server must ... >>> The browser never sees anything not sent to it by the script. ...
      (comp.databases.pick)
    • Re: any pointers please? combine words script
      ... use CGI qw/:standard/; ... # script is in development, ... # the html in another place ... sub get_html { ...
      (comp.lang.perl.misc)
    • Re: Need help
      ... My script works well with the sample data that I ... when the cgi script is run. ... If you are having a problem with your Perl script and want help, ... click in it and paste my html content or script in it. ...
      (comp.lang.perl.misc)
    • Re: CGI - HTTP 500 Internal server error
      ... What is a "HTML error"? ... most common problem is, as stated above, a missing script header. ... number and attach a STRSRVJOB and STRDBG to it to do debugging. ... To make CGI scripts a bit more verbose, have a look at the ScriptLog (or ...
      (comp.sys.ibm.as400.misc)
    • RE: CGI.PM and HTML Templates
      ... John Pretti wrote: ... the following script to use an html template? ... the cgi program. ... You can remove the html code from the ...
      (perl.beginners)