Re: Calling a perl script from an html doc

From: John Bokma (postmaster_at_castleamber.com)
Date: 10/18/04


Date: 18 Oct 2004 18:01:03 GMT

Spin 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?

Does AFAIK only work if you have and Perl installed, and the file is local
(the latter not sure). But why not just use Apache?

-- 
John                               MexIT: http://johnbokma.com/mexit/
                           personal page:       http://johnbokma.com/
        Experienced programmer available:     http://castleamber.com/
            Happy Customers: http://castleamber.com/testimonials.html


Relevant Pages

  • Undefined symbol: PL_perl_destruct_level after upgrading....
    ... "test upgrade" and all that):P ... Basically, I recently upgraded apache, mysql & php using http:// ... it seems that _somehow_ Perl 5.8.0 was ... installed on the Woody server I admin. ...
    (Debian-User)
  • Re: Get remote IP in self-calling script
    ... environment variable contains the IP of the server. ... Post your perl code together with the two form HTML page (the first one, ... And in fact to load a page via ssl, no matter if html or perl, the ... and why apache behaves like this. ...
    (comp.lang.perl.misc)
  • Re: redirect / new website how to redirect old (google) links to new site ?
    ... we have a discussion forum written in Perl. ... We have other packages written in PHP. ... It may not be as good as Apache, but it still is a perfectly good webserver. ... People have been working on them, but they're still not ready for a serious server. ...
    (comp.lang.php)
  • DBD module loading problem
    ... Objective - execute perl modules from apache that access an oracle database ... Apache server - RHAS 4.0, ... Perl Version ...
    (perl.dbi.users)
  • Apache+Perl Net::SMTP Strange problem
    ... The application needs to send out email using a SMTP server as ... I wrote a test perl script test.cgi. ... The apache server is configured to run at apache:apache. ...
    (comp.lang.perl.misc)