Re: Re: File upload problems still!

2001-08-23 Thread Ryan Davis
Sorry! I meant my population, as in the users of this program. This is only for members of a student group on campus. It will be open on the web, but anyone not in our member roster will be tossed out. My college career centers require word resumes for various resume book compilation, so everyo

sending @array as hidden variable

2001-08-23 Thread Simon K. Chan
Hi Everybody, I am trying to send an array as a hidden value in my script as follows: @array = (eggs, ham, bread, pop); foreach $food (@array){ print ""; } My two questions are: 1. Is this the most efficient way of sending an array as a hidden value? 2. And if so, what is the corresponding

Re: Browser Problem

2001-08-23 Thread Advance Design - Vance
Hello Curtis, It works!! Start Perl stuff... End Perl stuff... print< base-02.html Content container The:- print "Content-type: text/html\n\n"; produced a error in the browser for some reason. Many thanks for all your help. (I am not entirely certain of what is g

RE: CGI::POST_MAX use and control

2001-08-23 Thread John
Justin, Whoops! Hadn't thought of that. Belt 'n suspenders is good. I'm sold. Besides, I'm am anthropomorphic enough to understand that my server has feelings, too. John-- [EMAIL PROTECTED] -Original Message- From: Justin Simoni [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 23, 20

Re: Browser Problem

2001-08-23 Thread Curtis Poe
--- Advance Design - Vance <[EMAIL PROTECTED]> wrote: > Hello Curtis, > > I am just returning a complete html document from the perl file ... Vance, It sounds like that could be the problem. Generally, when printing a Web page from a CGI script, you need to supply a content-type header to let

Re: Browser Problem

2001-08-23 Thread Advance Design - Vance
Hello Curtis, I am just returning a complete html document from the perl file using the following: (perl in blue, html in red) Start Perl stuff... End Perl stuff... print< base-02.html Content container Your email suggests I should have a content-type header included in here somewh

Re: Fw: Browser Problem

2001-08-23 Thread Curtis Poe
--- Advance Design - Vance <[EMAIL PROTECTED]> wrote: > Hi Joel, > Thanks for the fast reply. > This is the html document heads. > > I have tried "messing" about with these, but with > no change in result. > > Transitional//EN"> > > > base-02.html > > > > content="keyword,keyword"> > Ac

sendmail and newlines

2001-08-23 Thread Wendy DeCora
Situation: My perl script (see Code: below) is being handed a flatfile (see File: below) generated from a database to do a mass mailing that will send a message generic to the flatfile but with each recepient receiving a unique username and password. The message part of the file is being input by

Re: Configuration Files

2001-08-23 Thread Jeffl
Darren, try App::Config Jeffl On 2001.08.23 15:27 darren chamberlain wrote: > James Kelty <[EMAIL PROTECTED]> said something to this effect on > 08/23/2001: > > I would like to set up a configuration file for a CGI that I am writing > > so that it will be portable without > > editing the actual

Re: Configuration Files

2001-08-23 Thread darren chamberlain
James Kelty <[EMAIL PROTECTED]> said something to this effect on 08/23/2001: > I would like to set up a configuration file for a CGI that I am writing > so that it will be portable without > editing the actual cgi. Stuff like administator email's, network > segments, and the like. > > Is there a

RE: Browser Problem

2001-08-23 Thread Bradley M. Handy
Check any 'Content-type' header that you send. The header should be 'Content-type: text/html'. If you are not sending a 'Content-type' header, then you should be. To do this simply put one of the following statements in your code: # if you are using Lincoln Stein's CGI.pm module. print CGI->he

Configuration Files

2001-08-23 Thread James Kelty
Hello. I would like to set up a configuration file for a CGI that I am writing so that it will be portable without editing the actual cgi. Stuff like administator email's, network segments, and the like. Is there a way to source the file for the cgi to read, or do I have to add a require statmen

Re: CGI::POST_MAX use and control

2001-08-23 Thread Justin Simoni
> I'd thought of using JavaScript, but I'm sunk if the user has Jscript turned > off on their PC and I felt I wanted a little more surety on this being > checked. I am going to re-visit the idea, however.never hurts to do both, never hurts to do both, your server will thank you for the les

Fw: Browser Problem

2001-08-23 Thread Advance Design - Vance
Hi Joel, Thanks for the fast reply. This is the html document heads. I have tried "messing" about with these, but with no change in result. base-02.html Thanks, Vance. [EMAIL PROTECTED] - Original Message - From: "Joel Hughes" <[EMAIL PROTECTED]> To: "Advance Design - Vance"

Re: Browser Problem

2001-08-23 Thread Curtis Poe
--- Advance Design - Vance <[EMAIL PROTECTED]> wrote: > Hello > I have written some web pages incorporating Forms and Perl processing on the server. >Everything > works fine on my IE 5.5 Browser but when I use the Netscape 4.7 and Opera 5.12 >browsers, the > HTML sent back from the Perl programm

RE: CGI::POST_MAX use and control

2001-08-23 Thread John
John, Thanks for the idea. I'd thought of using JavaScript, but I'm sunk if the user has Jscript turned off on their PC and I felt I wanted a little more surety on this being checked. I am going to re-visit the idea, however. My current Perl code does catch the error and return a form to the us

RE: CGI::POST_MAX use and control

2001-08-23 Thread Moon, John
For myself I would prefer not to "abort" a script on this type of error... A simple JavaScript to check for the max size of a textarea and an "alert" is a much better way to handle this type of error, in my option... see "OnSubmit" in some JavaScript reference and you should be able to find an ex

RE: Browser Problem

2001-08-23 Thread Joel Hughes
maybe you've made a mistake with your HTTP headers which IE5.5 is being forgiving about but Opera and Netscape are complaining about (Opera is quite strict - which is good of course!). Can you check the headers that you are producing and post them to the group? regards Joel -Original Messa

RE: CGI::POST_MAX use and control

2001-08-23 Thread John
Lisa, Thanks! I synthesized from your answer and realized that my use of 'use CGI::Carp qw/fatalsToBrowser/;' was having me die long before I could have the code handle the problem. I commented out the '...Carp...' block and, indeed, my builtin code handled the error the way I'd intended. I was

Re: How does Apache invoke Perl interpreter

2001-08-23 Thread Brett W. McCoy
On Thu, 23 Aug 2001, Qichao Dong (Leon) wrote: > I want to do some research on Perl's transplantability, so I would like to > know how an Apache server invokes Perl interpreter - in the case of > mod_cgi instead of mod_perl. Have you tried http://perl.apache.org? -- Brett

Browser Problem

2001-08-23 Thread Advance Design - Vance
Hello I have written some web pages incorporating Forms and Perl processing on the server. Everything works fine on my IE 5.5 Browser but when I use the Netscape 4.7 and Opera 5.12 browsers, the HTML sent back from the Perl programme appears as (source) text. Do you have any ideas why. Thanks

RE: How does Apache invoke Perl interpreter: OT please don't reply

2001-08-23 Thread Mike Rapuano
test -Original Message- From: Qichao Dong (Leon) [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 23, 2001 2:21 PM To: [EMAIL PROTECTED] Subject: How does Apache invoke Perl interpreter Hi, I want to do some research on Perl's transplantability, so I would like to know how an Apache s

How does Apache invoke Perl interpreter

2001-08-23 Thread Qichao Dong (Leon)
Hi, I want to do some research on Perl's transplantability, so I would like to know how an Apache server invokes Perl interpreter - in the case of mod_cgi instead of mod_perl. If anyone knows, or can redirect me to some documentation on the mechanism of Apache, please give me a hint. Thank you.

Weekly list FAQ posting

2001-08-23 Thread casey
NAME beginners-faq - FAQ for the beginners-cgi mailing list 1 - Administriva 1.1 - I'm not subscribed - how do I subscribe? Send mail to <[EMAIL PROTECTED]> You can also specify your subscription email address by sending email to (assuming [EMAIL PROTECTED] is your email addr

Re: CGI::POST_MAX use and control

2001-08-23 Thread Lisa Nyman
Hi, On Thu, 23 Aug 2001, John wrote: > The current incarnation of my script blows itself out of the water if the > $user_body variable (the TEXTAREA source) is greater than 4K, for example. > This is good. > > I would like to be able to capture and control the process so that I don't > get rude

Re: Re: File upload problems still!

2001-08-23 Thread Mo Holkar / UKG
At 17:31 23/08/01, Ryan wrote: >^M's galore. The 'auto' setting on WS_ftp must not do much. By default WS_ftp will only be expecting files with certain extensions (eg. .txt, .htm) to be ASCII. So 'auto' will upload your .cgi or .pl files as binary. You can change these defaults on the Options

Re: Re: File upload problems still!

2001-08-23 Thread ryepup
> >cat -vet script.cgi | more > ^M's galore. The 'auto' setting on WS_ftp must not do much. >in-place edit: > >perl -pi -e 's/\r//g' script.cgi > >Just make sure to back up your script, first. worked like a charm, eliminating all the ^M's When I tried it out, the program still crash

CGI::POST_MAX use and control

2001-08-23 Thread John
Hi all, I would appreciate some guidance in the use of CGI::POST_MAX. I've listed a snippet of relevant code below from my program to illustrate. When reading in data fields from an HTML form, I want to limit the size of the data accepted from a TEXTAREA box. I don't want to depend upon my ISPs

Re: File upload problems still!

2001-08-23 Thread Curtis Poe
--- Ryan Davis <[EMAIL PROTECTED]> wrote: > Curtis+List, > > I checked out the CGI::Safe.pm module, and so far, I'm having the same > problem. The script goes to "Just about to get your resume!"; then quits. > I don't have access to server logs, so I don't know what is going on. I > think my se

Re: Re: File upload problems still!

2001-08-23 Thread ryepup
>Roger C Haslock wrote: >> >> Just an aside, but what is the point of format => 'Application/msword' ? >> >> Anyone can rename their file to look like '*.doc', and you can only >> determine the file content when you have uploaded it ( at which point you >> SHOULD check). > >not to mention yo

Re: Re: File upload problems still!

2001-08-23 Thread ryepup
>Roger C Haslock wrote: >> >> Just an aside, but what is the point of format => 'Application/msword' ? >> >> Anyone can rename their file to look like '*.doc', and you can only >> determine the file content when you have uploaded it ( at which point you >> SHOULD check). > >not to mention you

Re: File upload problems still!

2001-08-23 Thread fliptop
Roger C Haslock wrote: > > Just an aside, but what is the point of format => 'Application/msword' ? > > Anyone can rename their file to look like '*.doc', and you can only > determine the file content when you have uploaded it ( at which point you > SHOULD check). not to mention you may offend

Re: File upload problems still!

2001-08-23 Thread Roger C Haslock
Just an aside, but what is the point of format => 'Application/msword' ? Anyone can rename their file to look like '*.doc', and you can only determine the file content when you have uploaded it ( at which point you SHOULD check). Regards - Roger - - Original Message - From: "Ryan Davis