Win32 Apache and Perl and IIS

2001-09-01 Thread Ryan Davis
I set this up on a Win98 machine a few months ago, and I there is a place in the Apache httpd.conf to choose whether a shebang line is interpreted or if Perl's location is taken from the registry: #takes Perl location from registry: ScriptInterpreterSource registry #takes Perl location from sheb

Re: Re: File upload problems still!

2001-08-23 Thread Ryan Davis
C Haslock <[EMAIL PROTECTED]> Cc: Ryan Davis <[EMAIL PROTECTED]> Sent: Thursday, August 23, 2001 9:37 PM Subject: Re: Re: File upload problems still! > > > In the end, they are going to put on a resume CD, with a VB front end, > and Word > > is used to do keyword sea

File upload problems still!

2001-08-22 Thread Ryan Davis
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 server is running Apache, and I've been snooping to try

File upload problems

2001-08-16 Thread Ryan Davis
ssions of the resumes/ folder, from 644, 744, 711, but I figured all it really needs is owner rwx, since the script runs as me.    Could this be a server related thing?  There may be other issues with the script, (SECURITY) but for now, I just want something functional.  Any help would be appreciate

Re: Cookies and Security

2001-08-08 Thread Ryan Davis
OK, I know this is getting a little off-topic, but I think security is a big issue, especially with newbies like myself, and deserves some good discussion. Also, there's probably not a perl-cgi-beginners-security list, nor should there be. I looked at the perlmonks article, and had some trouble m

Re: Perl Editors

2001-08-08 Thread Ryan Davis
Instead of notepad and command line, try the "Programmer's File Editor" http://www.lancs.ac.uk/people/cpaap/pfe or on download.com It has line numbering and a host of other handy features, and is freeware. Also, UltraEdit is good, but it's not free. It has syntax highlighting, but I'm too che

Re: Cookies and Security

2001-08-08 Thread Ryan Davis
the message _out_ of digest form. Thanks, Ryan - Original Message - From: Curtis Poe <[EMAIL PROTECTED]> To: CGI Beginners <[EMAIL PROTECTED]> Sent: Wednesday, August 08, 2001 11:00 AM Subject: Re: Cookies and Security > --- Ryan Davis <[EMAIL PROTECTED]> wrot

Re: very funny...

2001-08-08 Thread Ryan Davis
While on the topic of good/bad questions, notice the response the MySQL question recieved. It was a very specific, well worded question, and got an overwhelming response. As far as tension, I think the culture of Perl goes against that, and most subscribers to this list also have at least a litt

Cookies and Security

2001-08-08 Thread Ryan Davis
Hey all, I have a password protected area, and after the user puts in their password, I store it in a cookie, and the CGI reads that cookie every time to determine if the user is logged in or not. I figured this was safer than passing a 'loggedin' param as a hidden field, but I'm not sure if

Re: getting the calling function name.

2001-08-07 Thread Ryan Davis
You could pass two arguments to the debugLogger, one the message, and the other the sub name. So it would be: sub x{ stuff $sub_name = ""; # Get the subroutine name.This is what i need to grep. debugLogger($sub_name, $message); } Then the debugLogger just has to print. I know that

Re: cgi and html

2001-08-03 Thread Ryan Davis
My solution is a little more general. I wrote this so my CGI could fit into HTML created using Dreamweaver templates. In the Dreamweaver template wherever I want my perl to write, I put a unique string, like "perlinsert". Then I call a subroutine to put the html into an array, and print it as ne

Re: Untainting for Mail::Send

2001-08-03 Thread Ryan Davis
Use Mail::Sendmail. That worked for me, using -T. Ryan - Original Message - From: mark crowe (JIC) <[EMAIL PROTECTED]> To: CGI Beginners <[EMAIL PROTECTED]> Sent: Friday, August 03, 2001 8:24 AM Subject: Untainting for Mail::Send > Hi > > Following Randal's (and other's) comments about

Re: 500 Internal Server Error

2001-08-02 Thread Ryan Davis
There actually is a setting to use the shebang line with Apache for Win32 and activestate. There's not much point to it, but since I test CGIs at home, and my server is unix, it lessens the transition. Of course, half the things I do can't run on Windows, but it works for the basics. (some of th

Re: HTML/CGIPERL/JavaScript related

2001-08-01 Thread Ryan Davis
The Javascript way is: Just try to click this link! But some people turn their Javascript off, and older browsers might have trouble. I'd be a better idea to disable the link with the CGI. You could make the text match your link style, but not have it be a link... hth, Ryan - Original M

Way off topic...

2001-07-31 Thread Ryan Davis/Pamela Karr
I figure someone here might know, and I've been wondering for years. Where did 'foo' and 'bar' come from? Thanks, Ryan

Using modules

2001-07-31 Thread Ryan Davis/Pamela Karr
s? Thanks, Ryan Davis

solution to mail taint problems

2001-07-30 Thread Ryan Davis/Pamela Karr
For those of you trying to get your CGI's to send mail AND use -T, here's the solution I found, and for those of you who know what they're doing, please let me know if I have any gaping security holes here. First, create a small shell script that looks like this: #!/usr/bin/sh /usr/bin/mail

Re: Still having problems sending mail...

2001-07-26 Thread Ryan Davis/Pamela Karr
iptop <[EMAIL PROTECTED]> To: Ryan Davis/Pamela Karr <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Thursday, July 26, 2001 11:16 AM Subject: Re: Still having problems sending mail... > Ryan Davis/Pamela Karr wrote: > > > > I'm still trying to get my scrip

Still having problems sending mail...

2001-07-26 Thread Ryan Davis/Pamela Karr
I'm still trying to get my script to send some a simple email. I looked up some examples, namely : http://perlfect.com/articles/sendmail.shtml, but it still doesn't work. I'm using the -T switch, and heres the code fragment: First, I define my variables: #variables for sending mail my $sendmai

e-mailing HTML form results (probably repeat question)

2001-07-25 Thread Ryan Davis/Pamela Karr
I'm trying to get email myself the results of a form, so I can moderate a list, and delete an entry if anyone puts in cuss words... I'm trying to do it with a system("\(mail [EMAIL PROTECTED] < messages\)\&"); The page loads to this point, then quits. I put the & in to run the mail program in