RE: Mail::Send question

2003-08-04 Thread Scot Robnett
Yep, if you want to bring that book home - drink some protein shakes, take your vitamins, and work out for a month before you buy it. - Scot Robnett inSite Internet Solutions [EMAIL PROTECTED] -Original Message- From: Andrew Brosnan [mailto:[EMAIL PROTECTED] Sent: Monday, August 04

Mail::Send question

2003-08-01 Thread Scot Robnett
# use it $msg-to($to); $msg-subject('Mail from SomeBusiness.com'); my $fh = $msg-open; print $fh $mailbody; $fh-close; # When this mail comes in, it comes from # mywebaccountuserID@mywebhostdomain - Scot Robnett inSite Internet Solutions [EMAIL PROTECTED] -- To unsubscribe, e-mail: [EMAIL

RE: Mail::Send question

2003-08-01 Thread Scot Robnett
That did the trick. Thanks! Scot R. inSite -Original Message- From: Wiggins d'Anconia [mailto:[EMAIL PROTECTED] Sent: Friday, August 01, 2003 7:59 PM To: Scot Robnett Cc: [EMAIL PROTECTED] Subject: Re: Mail::Send question Scot Robnett wrote: Is there any way to force Mail::Send

RE: PHP vs Perl

2003-07-28 Thread Scot Robnett
Center: http://teddy.fcc.ro/ Email: [EMAIL PROTECTED] - Original Message - From: Scot Robnett [EMAIL PROTECTED] To: Octavian Rasnita [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Sunday, July 27, 2003 8:35 PM Subject: RE: PHP vs Perl I think there are a couple of myths that need

RE: Another Regex question.

2003-07-23 Thread Scot Robnett
...; } } # OUTPUT I GOT FROM THIS: This Input Is In All Caps - Scot Robnett inSite Internet Solutions Square West Center 454 West Jackson Street Woodstock, IL 60098 (815)206-2907 office (815)790-9687 mobile [EMAIL PROTECTED] http://www.insiteful.tv http://www.mawebcenters.com/insite2000 -Original

RE: Regex problem

2003-07-20 Thread Scot Robnett
This is similar to Wiggins, except it checks to make sure that A. We have a two word sequence B. We don't have a comma These are still very basic levels of processing, though - Wiggins is right that we would need to see a more thorough example of data ranges to know exactly what

RE: CGI Module Reference

2003-07-08 Thread Scot Robnett
Online docs --- perldoc CGI O'Reilly books -- CGI Programming with Perl CGI Cookbook - Scot Robnett inSite Internet Solutions [EMAIL PROTECTED] -Original Message- From: Shaw, Matthew [mailto:[EMAIL PROTECTED] Sent: Monday, July 07, 2003 1:44 PM To: [EMAIL

Packages, run modes, and scopes, oh my

2003-06-27 Thread Scot Robnett
- The obvious: perldocs, CPAN, etc. I'm not so good at grasping abstract data, I learn better by building, breaking, and fixing until I get it right. Thanks in advance for any pointers, especially for tutorial-type info with program building exercises. - Scot Robnett inSite Internet Solutions [EMAIL

Doing time/date calculations

2003-06-22 Thread Scot Robnett
How would one go about determining if something is 3 days old, 3 months old, 1 year old, etc., based on the following scenario? The date that a user subscribes to our site is stored in a MySQL database in the DATE format -mm-dd. So column 'SubscribeDate' looks like 2003-06-18, for instance.

RE: array/split/join question

2003-06-14 Thread Scot Robnett
Seems like the same results would be achieved by not opening it at all the first time through. You're right, I commented out the extra slurpage, moved close(OUT) and close(IN) and it still worked. So basically you have a very elaborate and expensive no-op. Story

Question about regexing/splitting results into array

2003-06-12 Thread Scot Robnett
I was wondering why this array that I am attempting to create at line 21 seems to be empty. If I want to put chunks separated by p align=center into the array, how could I do this differently to make it work? ##

RE: Question about regexing/splitting results into array

2003-06-12 Thread Scot Robnett
- Kristofer Hoch wrote: - split /p align=\center\/, $_ instead of matching p (space) a,l,i,g,n,=, \,c,e,n,t,e,r\ embrace it in parenthesis...no escaping neccessary... split /(p align=center)/, $_ At least I think that I am reading this book properlyh --- Scot Robnett [EMAIL PROTECTED

RE: Getting my head round hashes

2003-06-06 Thread Scot Robnett
You're not pulling in the DBI functions, for one thing. Short example of using the hashref function built into DBI is shown below. #!/usr/local/perl -wT use strict; use CGI; use DBI; # need this! my $marker = 5; (or whatever number) my

RE: regexing AND NOT

2003-06-06 Thread Scot Robnett
I don't know if you realize that you just wrote an SQL statement. Have you considered putting all of this in a DB? Use the DB to do the searching and sorting, and Perl to display the results. #!/usr/bin/perl -w # quick DB sample, I know it doesn't use strict, sue me :-) use DBI; # connect $dbh

RE: Difference of $hash, and %hash. (was Getting my head round hashes)

2003-06-06 Thread Scot Robnett
Dave, I highly recommend most of the O'Reilly books, but especially Learning Perl by Randal Schwartz. For spot reference I like SAMS Teach Yourself Perl in 21 Days and IDG's Perl for Dummies, although there are portions of each in which your more militant Perl programmers would say their examples

RE: how to create a submit button in perl?

2003-06-06 Thread Scot Robnett
perldoc CGI -Original Message- From: Annie [mailto:[EMAIL PROTECTED] Sent: Friday, June 06, 2003 3:57 PM To: [EMAIL PROTECTED] Subject: how to create a submit button in perl? hi i need to create a submit button on one of my web page and i need the code to create that in

RE: How to automate the sending of mail

2003-06-05 Thread Scot Robnett
I need my web site to automatically send an email confirmation. I'm using CGI Perl 5.6 on IIS on Win2000. What options are there for doing this? MIME::Lite Mail::Sendmail Win32::OLE -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail:

RE: how to compare to string variables

2003-06-04 Thread Scot Robnett
Or even if you don't want them to be identical but just similar in that they contain the same string somewhere within the variable, i.e. $a2 = 'Lambott'; $a3 = 'fooLambottblah'; if ($a3 =~ /$a2/) { # do something } else { # do something

RE: how to compare to string variables

2003-06-04 Thread Scot Robnett
of the string, rather than changing the case of the string. -Original Message- From: Dennis Stout [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 04, 2003 1:51 AM To: Scot Robnett; [EMAIL PROTECTED] Cc: Boon Chong Ang; Annie Subject: Re: how to compare to string variables Or even if you don't want

Another regex question

2003-05-30 Thread Scot Robnett
Okay, I've looked at perlre, perlretut, perldoc.com, Learning Perl, and a partridge in a pear tree, and I'm still stupid. :) Does anyone out there have a working example script that does matching over multiple lines, preferably an HTML file? I'm just having a lot of difficulty with this and it

RE: Another regex question

2003-05-30 Thread Scot Robnett
- From: Andrew Brosnan [mailto:[EMAIL PROTECTED] Sent: Thursday, May 29, 2003 1:45 PM To: Scot Robnett; [EMAIL PROTECTED] Subject: RE: Another regex question On 5/29/03 at 12:27 PM, [EMAIL PROTECTED] (Scot Robnett) wrote: Will the file always be formated as below (with the blank line between

RE: Another regex question

2003-05-30 Thread Scot Robnett
Andrew, Thanks for trying to help. Scot -Original Message- From: Andrew Brosnan [mailto:[EMAIL PROTECTED] Sent: Thursday, May 29, 2003 3:05 PM To: Scot Robnett; [EMAIL PROTECTED] Subject: RE: Another regex question Try this: #!/usr/bin/perl #File: use warnings; use strict; #set

Help or point to the right documentation?

2003-05-29 Thread Scot Robnett
Can anyone point me to what documentation I should be reviewing to solve the following problem? I have an HTML file and want to look through it for certain comment tags or lines containing particular text strings, then split it up into ads and articles, for instance. Let's say I have a section

RE: Removing all \n in a text file.

2003-04-02 Thread Scot Robnett
case the greater than sign, which means open this file for writing, needs to be contained inside the quotes. open(OUTPUTFILE, $outputFile); Scot R. inSite -Original Message- From: Daniel Gross [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 01, 2003 1:07 PM To: 'Scot Robnett

RE: The very un-useful 'premature end of script headers' error message

2003-04-02 Thread Scot Robnett
Not really. If your form allows uploads, your form allows uploads. That's where DoS comes into play. Disguising the location of your code is a start, but you still have to figure out what you're going to do if someone tries to paste rogue code into your form or hit you with an obnoxiously large

RE: The very un-useful 'premature end of script headers' error message

2003-03-31 Thread Scot Robnett
(denial of service) on your server. My advice is always to err on the side of caution. Never think that would never happen on MY site. - Scot Robnett inSite Internet Solutions [EMAIL PROTECTED] -Original Message- From: Cool Hand Luke [mailto:[EMAIL PROTECTED] Sent: Monday, March 31

CPAN/Matt's???

2003-03-31 Thread Scot Robnett
Is anyone else seeing Matt's script archive when they try to go to CPAN? Scot R. inSite -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: CPAN/Matt's???

2003-03-31 Thread Scot Robnett
Ugh, completely forgot what day it was. Egg + face = me. - Scot Robnett inSite Internet Solutions [EMAIL PROTECTED] -Original Message- From: Hughes, Andrew [mailto:[EMAIL PROTECTED] Sent: Monday, March 31, 2003 8:11 PM To: '[EMAIL PROTECTED] ' Subject: RE: CPAN/Matt's??? doh

RE: Replacing/deleting text in a text file, part deux

2003-03-28 Thread Scot Robnett
Anything I can do to make this an easier question? No responses...maybe I didn't ask the question the right way or made it confusing as to what I am trying to do? Would it help to split it up? Thanks for any advice... Scot R. -Original Message- From: Scot Robnett [mailto:[EMAIL

RE: Replacing/deleting text in a text file, part deux

2003-03-28 Thread Scot Robnett
Ahhh, the famous 'map' function - haven't tried it, so I guess it's about time to give it a try. I wasn't too familiar with 'exists' either...thanks for the advice. - Scot Robnett -Original Message- From: Bob Showalter [mailto:[EMAIL PROTECTED] Sent: Friday, March 28, 2003 2:23 PM

RE: Printing all values except. . .

2003-03-28 Thread Scot Robnett
This is untested my $query = new CGI; my %names = $query-Vars; foreach my $key(keys(%names)) { print $key\: $names{$key}\n if (($key eq 'name') or ($key eq 'email')); } -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Replacing/deleting text in a text file, part deux

2003-03-27 Thread Scot Robnett
Looking at the code below, can anyone help me figure out how to compare the e-mail addresses in @addresses with the e-mail addresses in @emails and print out to the new file as shown, but minus the matching addresses? Scot R. inSite #!/usr/bin/perl -w use CGI; use CGI::Carp

RE: MIME::Lite

2003-03-26 Thread Scot Robnett
specific? - Scot Robnett inSite Internet Solutions [EMAIL PROTECTED] -Original Message- From: Horace Franklin Jr. [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 26, 2003 10:30 AM To: [EMAIL PROTECTED] Subject: MIME::Lite Clear DayHello, I use this line in my script: use MIME::Lite I

RE: Replacing/deleting line in a text file

2003-03-26 Thread Scot Robnett
Cool idea...thanks! - Scot Robnett inSite Internet Solutions [EMAIL PROTECTED] -Original Message- From: Bob Showalter [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 26, 2003 1:38 PM To: 'Scot Robnett'; [EMAIL PROTECTED] Subject: RE: Replacing/deleting line in a text file Scot

RE: Premature end of script headers

2003-03-24 Thread Scot Robnett
/html\n\n; - Scot Robnett inSite Internet Solutions [EMAIL PROTECTED] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: Premature end of script headers

2003-03-24 Thread Scot Robnett
; # etc. - Scot Robnett inSite Internet Solutions [EMAIL PROTECTED] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: Premature end of script headers

2003-03-24 Thread Scot Robnett
Yes, but it's not correct, there's your premature end of script header right there. You have: print Content-type:text/html\n\n; It should be: print Content-type: text/html\n\n; - Scot Robnett inSite Internet Solutions [EMAIL PROTECTED] -- To unsubscribe, e-mail

RE: Good Perl cgi book?

2003-03-18 Thread Scot Robnett
These all helped me... - Learning Perl - Perl/CGI Cookbook - CGI Programming with Perl - Standard POD documentation - http://www.perldoc.com Scot Robnett inSite Internet Solutions -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e

RE: Getting a STDOUT value

2003-03-07 Thread Scot Robnett
Wow! Quite a detailed response...thank you. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Friday, March 07, 2003 9:25 AM To: Scot Robnett Cc: [EMAIL PROTECTED] Subject: RE: Getting a STDOUT value Remember to include the list in your replies, so

Getting a STDOUT value

2003-03-06 Thread Scot Robnett
Does anyone know how I capture the value of an operation that defaults to STDOUT? For instance if I want to do something like #!/usr/bin/perl -w use strict; my $value = `perl -c someapp.cgi`; # prints to STDOUT print Content-type: text/html\n\n; print Result: $valueBR; This obviously won't

DBI question

2003-02-27 Thread Scot Robnett
I have a script which is supposed to e-mail a user their username/password info as long as their e-mail address is in the database. The following code works if the address is in the database (it prints the approval page and sends the mail with the correct information), but if the address is -not-

RE: lower casing email address

2003-02-25 Thread Scot Robnett
Myself, I'd go with $lowercase_email = lc($email); - Scot Robnett inSite Internet Solutions [EMAIL PROTECTED] -Original Message- From: David Gilden [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 25, 2003 1:13 PM To: [EMAIL PROTECTED] Subject: lower casing email address

RE: NULL insertion

2003-02-24 Thread Scot Robnett
,NULL,$value)|) if($key eq fax); $sth-execute; } # Commit the changes. $dbh-commit; # Disconnect from the database. $dbh-disconnect; 1; - Scot Robnett inSite Internet Solutions [EMAIL PROTECTED] -Original Message- From: T. Murlidharan Nair [mailto:[EMAIL PROTECTED] Sent

RE: ISP won't install Perl modules

2003-01-17 Thread Scot Robnett
a web host that willingly installs modules for you. I'm working with one now that is great about this. If you'd like more info, e-mail me offline from the list. Thanks! - Scot Robnett inSite Internet Solutions [EMAIL PROTECTED] -Original Message- From: Rene Verharen [mailto:[EMAIL

RE: Confusion on @array vs $array[] vs $array

2002-12-18 Thread Scot Robnett
' = 'three', 'key3' = 'four'); # $list{'key2'} gives you three # You can't have another key2 key, # but the same -value- can be # associated with multiple keys if # desired. - Scot Robnett inSite Internet Solutions [EMAIL

RE: html redirect using CGI.pm

2002-12-09 Thread Scot Robnett
You might want to just use redirect(), check perldoc CGI - Scot Robnett inSite Internet Solutions [EMAIL PROTECTED] -Original Message- From: Admin-Stress [mailto:[EMAIL PROTECTED]] Sent: Monday, December 09, 2002 2:42 PM To: perl cgi Subject: html redirect using CGI.pm Hi, Could

RE: html redirect using CGI.pm

2002-12-09 Thread Scot Robnett
('Redirecting to login page'), end_html; - Scot Robnett inSite Internet Solutions [EMAIL PROTECTED] -Original Message- From: Admin-Stress [mailto:[EMAIL PROTECTED]] Sent: Monday, December 09, 2002 3:45 PM To: perl cgi Subject: RE: html redirect using CGI.pm print $query-redirect(-uri

Upload (probably a stupid question)

2002-12-06 Thread Scot Robnett
and Settings\SRobnet\Desktop\test.xls How can I get it to just leave the filename as test.xls on the remote server without appending my entire local path to it? - Scot Robnett inSite Internet Solutions [EMAIL PROTECTED] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail

Was: 5.005_03 vs. 5.8, should be pure perl

2002-12-04 Thread Scot Robnett
it would be great to know what it was; can you please post a link to any help docs? Thanks. Scot R. inSite -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Wednesday, December 04, 2002 11:55 AM To: Scot Robnett; Octavian Rasnita Cc: [EMAIL PROTECTED] Subject

RE: 5.005_03 vs. 5.8

2002-12-03 Thread Scot Robnett
Thanks to all for your input on this. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: 5.005_03 vs. 5.8

2002-12-03 Thread Scot Robnett
Thanks again everyone. Based on your input, reading the docs, and doing some evaluation of our own needs, we decided on Red Hat 8.0, which comes with Perl 5.8.0, Apache 2.0, and with the mod_perl package. It all goes on a Dell PowerEdge 2600 144 GB (108 usable) RAID 5 with a 512 MB Xeon.

RE: Creating and Using Libraries

2002-12-02 Thread Scot Robnett
#1.) I guess the answer to question one is simply to create a directory somewhere within my user access/document tree, and then give it the proper access permissions. I prefer to put them in a directory that is not in the HTML document tree if at

5.005_03 vs. 5.8

2002-12-02 Thread Scot Robnett
used to one flavor and you know what they say about fixing things that ain't broke. Opinions, comments, suggestions? - Scot Robnett inSite Internet Solutions [EMAIL PROTECTED] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: tutorials

2002-11-23 Thread Scot Robnett
. - Scot Robnett inSite Internet Solutions Square West Center 454 West Jackson Street Woodstock, IL 60098 (815)206-2907 office (815)790-9687 mobile [EMAIL PROTECTED] http://www.insiteful.tv -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Saturday, November 23

RE: Unable to run cgi script

2002-11-11 Thread Scot Robnett
quick question: I noticed that you called the configuration file httpd.config. Since its actual name is httpd.conf, I wonder if it's as simple as renaming your configuration file? If you already have it named httpd.conf, then never mind this question. :) - Scot Robnett inSite Internet Solutions

RE: Form-mail blues

2002-11-04 Thread Scot Robnett
, punctuation, and spacing correct. - Scot Robnett inSite Internet Solutions [EMAIL PROTECTED] -Original Message- From: Ramon Hildreth [mailto:ramon;ramonred.net] Sent: Saturday, November 02, 2002 2:49 PM To: [EMAIL PROTECTED] Subject: Form-mail blues Hi, I don't have access to the error

RE: Using MySQL

2002-10-15 Thread Scot Robnett
DuBois, and the O'Reilly book Programming the Perl DBI is always a good reference point. - Scot Robnett inSite Internet Solutions Square West Center 454 West Jackson Street Woodstock, IL 60098 (815)206-2907 office (815)342-6480 mobile [EMAIL PROTECTED] http://www.insiteful.tv -Original

RE: pop-up window with database access

2002-09-30 Thread Scot Robnett
Avoid Javascript is a pretty far-reaching statement. If you want to launch a popup window, Perl isn't going to do that, Javascript is. It only takes one or two lines of client-side code. There are easy-to-follow Javascript primers at http://javascript.internet.com and

RE: pop-up window with database access

2002-09-30 Thread Scot Robnett
PROTECTED] Subject: Re: pop-up window with database access On Mon, 30 Sep 2002 10:28:51 -0500, [EMAIL PROTECTED] (Scot Robnett) wrote: Avoid Javascript is a pretty far-reaching statement. If you want to launch a popup window, Perl isn't going to do that, Javascript is. It only takes one or two lines

RE: Hotmail.com vs. MIME:Lite

2002-09-18 Thread Scot Robnett
it's a hotmail address and sending only plain text to hotmail, while sending html to all others) Does anyone have an idea how to solve that problem? Thanks for your help, Sven On Montag, September 16, 2002, at 06:48 Uhr, Scot Robnett wrote: Yes, you can send text attachments. It's all

RE: :SMTP / HTML

2002-09-12 Thread Scot Robnett
IMG SRC=cid:img.jpg; /P /BODY }); # Attach the image $msg-attach(Type = 'image/gif', Id = 'img.gif', Path = '/path/to/img.gif'); # Send it $msg-send(); - Scot Robnett inSite Internet Solutions [EMAIL PROTECTED

RE: ending a script

2002-09-12 Thread Scot Robnett
) { # boot 'em } else { # do your thing } - Scot Robnett inSite Internet Solutions [EMAIL PROTECTED] http://www.insiteful.tv -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: real beginners stuff

2002-08-13 Thread Scot Robnett
Try printing the content type before your HERE doc, not within it. Scot R. inSite -Original Message- From: Jimmy George [mailto:[EMAIL PROTECTED]] Sent: Tuesday, August 13, 2002 2:03 AM To: cgi Subject: real beginners stuff Hello World If I logon to the web via (say) server_a and

RE: How to find the remote time?

2002-08-12 Thread Scot Robnett
You can use Javascript to pull the time off their system clock, assuming their clock is set correctly. Server-side, you can use an ARIN search on their IP to get their location, but in that case you're relying on the IP not being spoofed and/or all of the lookups actually working, which is not a

RE: Creating a shopping cart

2002-08-12 Thread Scot Robnett
. In most cases, I've found that my clients invariably need some customization that isn't available in a canned shopping cart script. Authorize.net has a huge list of Authorize.net-compatible shopping carts here: http://www.authorizenet.com/alliances/carts_list.php - Scot Robnett inSite Internet

RE: Finding the country

2002-07-24 Thread Scot Robnett
I'm assuming your best bet would be to find the IP using the first line of a ping or traceroute and regex-ing out the extraneous stuff, then using 'whois -a' (which does an ARIN search) and extracting the 4th line to get the country. Anybody have any easier/faster ideas? Scot R. inSite --

RE: Running CGIs offline

2002-07-23 Thread Scot Robnett
, but it's a step closer... HTH someone, TommyGun. -Original Message- From : Scot Robnett [EMAIL PROTECTED] To : David T-G [EMAIL PROTECTED]; perl beginners cgi [EMAIL PROTECTED] CC : Bob Showalter [EMAIL PROTECTED]Date : 22 July 2002 19:48:17 Subject : RE: Running CGIs offline Just a note

RE: Running CGIs offline

2002-07-22 Thread Scot Robnett
I have been interested in this sort of thing for awhile also. Looking forward to any helpful info! Scot R. inSite -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Monday, July 22, 2002 12:06 PM To: [EMAIL PROTECTED] Subject: Running CGIs offline I'm

RE: Running CGIs offline

2002-07-22 Thread Scot Robnett
Just a note to throw in my own WOOOH :) Gotta try it. Scot R. inSite -Original Message- From: David T-G [mailto:[EMAIL PROTECTED]] Sent: Monday, July 22, 2002 1:22 PM To: perl beginners cgi Cc: Bob Showalter Subject: Re: Running CGIs offline Bob, et al -- and then Bob

RE: redirect()

2002-07-14 Thread Scot Robnett
A common mistake is to print a header and then do a redirect, which slows the process down because essentially you have a script and a page competing to generate a header. When using redirect(), do not do this: #!/usr/bin/perl use CGI; my $q = new CGI; print

RE: redirect()

2002-07-14 Thread Scot Robnett
Do you think the clients browser goes and Posts the form again to the new URL? No, I don't think that is what's happening. Once you post the info, the script is processing it and doing the redirect, but I don't think it is posting the entire string of nv pairs

RE: Username Password Question

2002-07-03 Thread Scot Robnett
I might have suggested doing authentication a little bit differently, as it appears that you are using a plain text file with unencrypted username/password data. But if you just want to redirect based on what you've got and you're not extremely concerned about security in this instance, this

RE: Disabling file uploads?

2002-07-03 Thread Scot Robnett
. # Regards, Scot Robnett inSite Internet Solutions [EMAIL PROTECTED] http://www.insiteful.tv --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.372 / Virus Database: 207 - Release Date: 6/20/2002 -- To unsubscribe, e-mail: [EMAIL

RE: DBI in CGI's

2002-07-03 Thread Scot Robnett
Can you telnet or SSH into your server? Do they have the CPAN module installed? If the answers to those 2 questions are yes, try perl -MCPAN -e 'install Bundle::DBI' I don't *think* this module is of the pure perl variety, so my suspicion is that it has to be installed by whoever is

RE: Executing cgi from html

2002-07-01 Thread Scot Robnett
includes: http://hoohoo.ncsa.uiuc.edu/docs/tutorials/includes.html Scot Robnett inSite Internet Solutions [EMAIL PROTECTED] -Original Message- From: Rafael Cotta [mailto:[EMAIL PROTECTED]] Sent: Sunday, June 30, 2002 11:17 PM To: [EMAIL PROTECTED] Subject: Executing cgi from html Hi all

RE: cgi probs

2002-06-30 Thread Scot Robnett
, 2002 9:27 AM To: [EMAIL PROTECTED] Subject: RE: cgi probs yes it is, but i am not sure if it is setup right. like i say i have installed linux, but haven't done anything with apache. What do i need to do to configure and run apache, as that could well be my problem. thanks Ian Scot Robnett

RE: CGI.pm v/s roll-your-own [WAS:] Displaying Problems

2002-06-27 Thread Scot Robnett
on Thu, 27 Jun 2002 02:54:10 GMT, [EMAIL PROTECTED] (Scot Robnett) wrote: Its pretty hard to make it more simple than: use Form; my %input = Form(); Let me try. use CGI; %params = $q-Vars; Try again. Your code throws

RE: CGI.pm v/s roll-your-own [WAS:] Displaying Problems

2002-06-27 Thread Scot Robnett
are returned as a packed string separated by \0. Scot R. inSite -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Thursday, June 27, 2002 10:44 AM To: Scot Robnett; [EMAIL PROTECTED] Cc: Felix Geerinckx Subject: Re: CGI.pm v/s roll-your-own

RE: CGI.pm v/s roll-your-own [WAS:] Displaying Problems

2002-06-27 Thread Scot Robnett
True. Whew, my hand hurts from all that extra typing. ;) Scot R. -Original Message- From: John Brooking [mailto:[EMAIL PROTECTED]] Sent: Thursday, June 27, 2002 1:50 PM To: Scot Robnett; [EMAIL PROTECTED] Cc: Felix Geerinckx Subject: RE: CGI.pm v/s roll-your-own [WAS:] Displaying

RE: cgi probs

2002-06-27 Thread Scot Robnett
I hate to ask the obvious, but is your web server running on that box? Scot R. -Original Message- From: Ian Rogers [mailto:[EMAIL PROTECTED]] Sent: Thursday, June 27, 2002 5:19 PM To: [EMAIL PROTECTED] Subject: cgi probs Hi I have set up my machine running suse

RE: HTML form another web site

2002-06-24 Thread Scot Robnett
You need to check out the LWP module. http://search.cpan.org/doc/RSE/lcwa-1.0.0/lib/lwp/lib/LWP.pm Scot R. inSite Internet Solutions [EMAIL PROTECTED] http://www.insiteful.tv -Original Message- From: Fred Sahakian [mailto:[EMAIL PROTECTED]] Sent: Monday, June 24, 2002 9:49 AM To:

RE: how to change my password throught cgi

2002-06-24 Thread Scot Robnett
Assuming you are on UNIX, run your script suid. For example, if your script was called auth.cgi, here is what you would do: 1st, at the command line: chmod 4711 auth.cgi 2nd, change your shebang line in your script to include the -U (run as user) flag: #!/usr/bin/perl -U Now

RE: Object oriented variable question

2002-06-24 Thread Scot Robnett
You are trying to assign a static value to something that comes from the form. If you create a field called comments (or anything you want to call it, that's just what I chose) on your form and then type your test string, it will work with the following change to your code:

RE: What editor for Perl do you recommend?

2002-06-24 Thread Scot Robnett
emacs is a good one. I also like TextPad (www.textpad.com). Scot R. inSite Internet Solutions [EMAIL PROTECTED] http://www.insiteful.tv -Original Message- From: Jonathan Gines [mailto:[EMAIL PROTECTED]] Sent: Monday, June 24, 2002 11:19 AM To: Francesco Scaglioni; [EMAIL PROTECTED]

RE: number

2002-06-20 Thread Scot Robnett
Sorry, that was hasty...shoulda been something more like my $file = '/path/to/file'; open(THEFILE,$file); my @ary = THEFILE; close(THEFILE); for my $line(@ary) { if($line !~ /^\d/) { } } -Original Message- From: Bo Mangor [mailto:[EMAIL PROTECTED]] Sent: Thursday, June 20,

RE: number

2002-06-20 Thread Scot Robnett
if($string =~ /^[0-9]/) checks to see if the string starts with 0. If it doesn't, it checks if the string starts with 1. If it doesn't, it checks if the string starts with 2, and so on until the condition is true. If the condition is never true, then it will do whatever is in your else {} (or

RE: Uploading Help

2002-06-18 Thread Scot Robnett
method for reading uploaded files might have been slightly convoluted, but it still works... Scot Robnett inSite Internet Solutions [EMAIL PROTECTED] http://www.insiteful.tv There are only two things in life, but I forget what they are. - John Hiatt --- Outgoing mail is certified Virus Free

RE: Having problems with login

2002-06-13 Thread Scot Robnett
4711 and #!/usr/bin/perl -U). At any rate, you want to avoid these two things: - Leaving the password in plain text - Leaving the directory world-writeable Scot Robnett inSite Internet Solutions [EMAIL PROTECTED] http://www.insiteful.tv -Original Message- From

RE: Am I doing something wrong?

2002-06-07 Thread Scot Robnett
What you are doing is not commenting; you're creating POD documentation. To comment out lines in Perl, use the # character. #!/usr/bin/perl -w print Hello, world! \n; # This is a comment where you # can write about what you're # doing in a particular block # so other programmers won't # be

RE: Perl/CGI mysql book

2002-06-05 Thread Scot Robnett
Programming the Perl DBI http://www.oreilly.com/catalog/perldbi/ SAMS Teach Yourself SQL in 10 Minutes (It's a lie but it's still a helpful book) http://www.amazon.com/exec/obidos/ASIN/0672321289/qid=1023301413/sr=1-1/ref= sr_1_1/002-4842183-8613640 -Original Message- From: Maureen

RE: Perl/CGI Website Ideas

2002-06-05 Thread Scot Robnett
://www.cgi-resources.com/Programs_and_Scripts/Perl/ and http://www.scriptsearch.com/Perl/Scripts_and_Programs/ And stay on this list, of course. :) Scot Robnett inSite Internet Solutions [EMAIL PROTECTED] [EMAIL PROTECTED] -Original Message- From: John Pitchko [mailto

RE: Replacing with Regular expressions

2002-06-04 Thread Scot Robnett
] Subject: RE: Replacing with Regular expressions Scot Robnett wrote at Tue, 04 Jun 2002 05:13:13 +0200: $foo =~ s/\W*/_/g; http://www.oreilly.com/catalog/regex/ ... I want to allow only the a-z, A-Z, and 0-9 characters and I want to replace all others with _ when writing the file

RE: What is used htpasswd for?

2002-06-03 Thread Scot Robnett
that is accessible with a browser via HTTP. For full documentation, look here: http://httpd.apache.org/docs-2.0/programs/htpasswd.html Or in your local Apache administration guide. Regards, Scot Robnett inSite Internet Solutions [EMAIL PROTECTED] [EMAIL PROTECTED

RE: HTML in E-mail

2002-06-03 Thread Scot Robnett
of attachments. If interested in learning more about it, just go to CPAN and search the module documentation. Scot Robnett inSite Internet Solutions [EMAIL PROTECTED] [EMAIL PROTECTED] -Original Message- From: Camilo Gonzalez [mailto:[EMAIL PROTECTED]] Sent: Monday, June 03, 2002 3:49 PM

RE: HTML in E-mail

2002-06-03 Thread Scot Robnett
Does PINE do anything well? ducks Wait! I'm thinking. Is this a trick question? ;) Scot R. --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.365 / Virus Database: 202 - Release Date: 5/24/2002 -- To

RE: URL for security issue?

2002-05-30 Thread Scot Robnett
that it can run -only- as the user, not even as the httpd daemon. (#!/usr/bin/perl -U with the script directory chmod'd 4711) Scot Robnett inSite Internet Solutions [EMAIL PROTECTED] [EMAIL PROTECTED] -Original Message- From: David T-G [mailto:[EMAIL PROTECTED

RE: URL for security issue?

2002-05-30 Thread Scot Robnett
John, Thanks for that link. Good reading/advice. Scot R. -Original Message- From: John Brooking [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 30, 2002 12:02 PM To: David T-G; Beginners CGI Subject: Re: URL for security issue? Actually, I may have just found it. I think it was

How to match next line?

2002-05-22 Thread Scot Robnett
/) # Compare this line w/next line { next; # If it matches, skip it } else { print Address = $sorted[$i] \n; } } Scot Robnett inSite Internet Solutions [EMAIL PROTECTED] [EMAIL PROTECTED] --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http

RE: How to match next line?

2002-05-22 Thread Scot Robnett
Tagore, Good points, and well taken. I was definitely planning to modify case using tr/[A-Z]/[a-z]/ but just hadn't gotten that far yet. I hadn't considered the hash idea but it makes a hell of a lot more sense than what I was doing. Thanks. Scot Robnett inSite Internet Solutions [EMAIL

RE: regular expression

2002-05-17 Thread Scot Robnett
(/=/,$_); # split each line on '=' print Your $field is $value. \n; } Scot Robnett inSite Internet Solutions [EMAIL PROTECTED] [EMAIL PROTECTED] -Original Message- From: ChaoZ Inferno [mailto:[EMAIL PROTECTED]] Sent: Friday, May 17, 2002 11:38 AM To: [EMAIL PROTECTED] Subject: Re: regular expression

  1   2   >