I need CGI Help

2002-04-06 Thread Kevin Queen
Hello, I am relatively new to Unix and Perl/CGI, I am trying to set up cvsweb.cgi and am getting a Premature end of script headers error. Now my issue is that it is saying the following in the logs: Can't locate strict.pm in @INC (@INC contains: /usr/local/lib/perl5/5.6.1/i486-linux /usr/local/l

Windows 98 - PWS and Perl

2002-04-06 Thread Kamali Muthukrishnan
Hi : I installed activestate perl in windows 2000 and added the settings in IIS and it works. But in Windows 98 I installed the PWS, but don't know where to look for the PWS default website properties, to direct the .cgi files to the perl.exe Can somebody help me , please ? Kamali -- To unsub

Redirecting to a page and downloading

2002-04-06 Thread Octavian Rasnita
Hi all, I want to make a script that will start downloading a file when a link is clicked, then it will redirect to another web page. Please advice how to do it. If I put: print "Location: $path\n\n"; ... this will start downloading if the $path is a path to a file, but the page won't be printed

Sendmail form-things

2002-04-06 Thread Matthew Harrison
Hi, I need to use sendmail to email a set of variables from a form to a specified email address. I am currently using Mail::Send like so: #!/usr/bin/perl require Mail::Send; $msg = new Mail::Send; $msg->to('[EMAIL PROTECTED]'); $msg->subject('Form Data Submission'); $fh = $msg->open; print $f

Re: POSTing to a .html URL

2002-04-06 Thread David R. Baird
Hi Michael, thanks for taking the time to answer. The reason I would like to work this way (access a cgi script as an SSI within an html file) is because I am using a templating system (Mason) to develop a web site, but the production site will not be able to use Mason, so I have a script th

Re: exec CGI versus include virtual

2002-04-06 Thread Randal L. Schwartz
> "Octavian" == Octavian Rasnita <[EMAIL PROTECTED]> writes: Octavian> Do you know what is the difference between the SSI statements Octavian> include virtual ... and the address to the CGI script and Octavian> exec CGI ... and the address of the CGI script? Yes, exec CGI is deprecated. It

Hiding the real location of a file?

2002-04-06 Thread Octavian Rasnita
Hi all, I tried to make a Perl script for hiding the real location of a file that has to be downloaded. I tried using: print "Location: $file\n\n"; This hides the path to the file but it doesn't hide the server where is the file. Do you know if there is a solution to hide this server, and to sh

Re: What a CGI.pm state I'm in...

2002-04-06 Thread Todd Wade
<[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > 1) > Basically I have n + (5 or 6) texstfields to fill, initially from a file which works fine. Then the user makes changes and submits changes to the same script (don't want to use 2 scripts ideally), which iden

Re: Dealing with arrays ??? / Do I need to lock a file???

2002-04-06 Thread Todd Wade
"Rafael Cotta" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Question #1: How can I get the value of the key, so I can have in output > file something like "key = value" instead of only "value", as the code above > does? for my $key ( keys(%Form) ) { prin

Re: weird characters

2002-04-06 Thread Adam Bartley
in article [EMAIL PROTECTED], Michael Kelly at [EMAIL PROTECTED] wrote on 4/4/02 6:08 PM: > On 4/4/02 3:00 AM, Adam Bartley <[EMAIL PROTECTED]> wrote: > >> Easy. Mac, Windows and Unix all use different endings to their lines. The >> Mac uses *both* the PC and the Unix form. Easiest is to downloa

CGI Execution Error

2002-04-06 Thread Brian N. Smith
The Problem; I have tainted data. $cPass = crypt("pass", "dP"); $name = "brian"; $username = "Brian Smith" $runLine = "adduser -d /home/users -g raduser -c \"$username\" -p $cPass -s /bin/false $name"; I found this to help untaint the data. if ($runLine =~ /^([-\@\/\"\w.]+)$/) { $runLin