Closing Sendmail throws error?

2002-01-21 Thread Steven Vargas
Hi there, I'm getting this error message: Error closing sendmail: at /webdocs/docs/clone/cgi-bin/sendoff.cgi line 48. The email goes through successfully, but still get the error. Any help would be greatly appreciated! Thanks heaps. Here's the snippet of code: #!/usr/bin/perl -wT use strict; u

Re: [CGI] Using SSI in a CGI program

2002-01-21 Thread Marty Landman
At 02:51 PM 1/21/02 -0800, Troy May wrote: >I have an HTML template which gets inserted into a CGI program. I need to >insert an SSI into it, but when the page is created it will not show up like >it does with a standard HTML file. Troy, this is because the server will not parse the page genera

RE: Using SSI in a CGI program

2002-01-21 Thread Hanson, Robert
The simple answer is that it won't work. SSI's are handled by the web server, and the web server will not parse your script output for them, it will only parse HTML files (or shtml depending on your setup). I've attached a module we use on occation for this specific purpose. It includes pod if

RE: Using SSI in a CGI program

2002-01-21 Thread Camilo Gonzalez
Troy, Not sure why you're doing that. SSI won't work on parsed pages. You're already generating a page so why not include header.html in your template or as a heredoc or open it as a filehandle and print it? -Original Message- From: Troy May [mailto:[EMAIL PROTECTED]] Sent: Monday, Janua

Using SSI in a CGI program

2002-01-21 Thread Troy May
Hello, I have an HTML template which gets inserted into a CGI program. I need to insert an SSI into it, but when the page is created it will not show up like it does with a standard HTML file. Do I need to do anything different to this to execute it correctly so it will work like a standard SSI

Re: binmode with graphics, @ARGV, -T switch

2002-01-21 Thread Harvey Quamen
Briac: Thanks so much for all the help and advice. It's great to have a list like this, and I certainly appreciate the time you took to answer all my questions. That particular example is A LOT clearer now, and I learned a lot from your email. Thank you! Harv Quamen (P.S. Sorry to take u

Re: mkdir in cgi-script

2002-01-21 Thread Curtis Poe
--- "Randal L. Schwartz" <[EMAIL PROTECTED]> wrote: > > "Rene" == Rene Verharen <[EMAIL PROTECTED]> writes: > > Rene> The (sub)dirs I want to create are input from a form, so I had to > Rene> change your example a little because > > Rene> my @dir=qw($FORM{'dir'}); > > No no no! This is

Re: Return a ZIP file like this example with an image

2002-01-21 Thread Stephan Tinnemeyer
[EMAIL PROTECTED] wrote: > > But how to do it with a .zip file? > I've tried some different 'content-type' with no success... > Did you try 'application/zip'? Cheers Stephan -- Dipl.-Chem. Stephan Tinnemeyer Lindenallee 20 24105 Kiel Germany -- To unsubscribe, e-mail: [EMAIL PROTECTED] For

Return a ZIP file like this example

2002-01-21 Thread thomas . carl . johansson
Hi, I need help to return a winzip-file like I can do with an image like this code. #!/usr/bin/perl $source = "image.gif"; $status = ""; $file = ""; open (IMAGE, "<$source") or $status = "File not found!"; $size = -s "$source"; read (IMAGE, $file, $size); close IMAGE; if ($status

Return a ZIP file like this example with an image

2002-01-21 Thread thomas . carl . johansson
Hi, I need help to return a winzip-file like I can do with an image like this code. #!/usr/bin/perl $source = "image.gif"; $status = ""; $file = ""; open (IMAGE, "<$source") or $status = "File not found!"; $size = -s "$source"; read (IMAGE, $file, $size); close IMAGE; if ($status