Re: Calling a perl script from an html doc

From: Malcolm Dew-Jones (yf110_at_vtn1.victoria.tc.ca)
Date: 10/18/04

  • Next message: lesley_b_linux_at_yahoo.co.yuk: "Re: How do I print http 404 not found header?"
    Date: 18 Oct 2004 12:30:38 -0800
    
    

    Spin (spam@spamhotmail.com) wrote:
    : How can I call a perl script from an html document when I have no web server
    : (eg. Apache with its cgi-bin folder)? Our accounting system's reports are
    : created as html files on a linux server, and they pop up in IE6 on our local
    : Win2k workstations.

    : What I want to do is call a perl script like this in my html: <img
    : src="my_perl_script_gets_my_dynamic_image.pl">.

    : Basically it's the equivalent right now of calling this page in my browser:
    : file:///W:/reports/my_perl_script_etc.pl which only displays the contents of
    : the script instead of processing it via perl. Can I use Javascript or
    : something to make the server run the script through perl in order to display
    : it as an image in my local html doc?

    Without a server, there's basically one way to run your cgi script.

    You must run it ahead of time via some kind of batch job, and save the
    output in one of more files. The html would then point to those files.

    Whether this is practical depends especially on whether there only are a
    small number of options that must be handled.


  • Next message: lesley_b_linux_at_yahoo.co.yuk: "Re: How do I print http 404 not found header?"

    Relevant Pages

    • Re: Multidimensional array
      ... not a Perl or CGI.pm problem. ... Using single quotes 'Paul Schoen' causes the script to reply ... You must validate it *again* on the server. ... perhaps I can make the directory where the HTML form is located accessible only with a password. ...
      (comp.lang.perl.misc)
    • Re: Mixed language programming: C++, C# and Perl
      ... the output from which is an HTML file and a PNG file). ... It's easy to create html with .NET. ... The perl script, and the C++ ... program it calls, lives on our server. ...
      (microsoft.public.vstudio.general)
    • Form / CGI error
      ... I'm getting an error when I submit the following html ... form to a CGI script. ... The following script is supposed to print out the ... Internal Server Error ...
      (perl.beginners)
    • HTML purifier for Perl
      ... I recently discovered a security risk in my perl script that takes input from an HTML form, saves it in a database, and converts it to HTML for display. ... I found a way to use the PHP script from my Perl EventProcessor.pl. ...
      (comp.lang.perl.misc)
    • Re: FYI: Fetchmail saves the day!
      ... > Here is a Perl script I just wrote. ... > headers). ... The POP3 server must support the TOP command. ... I would promise to post the script in a public place after testing, ...
      (comp.os.linux.misc)