Re: Formmail help

2004-09-30 Thread William McKee
Hi Sander, I'm not familiar with Exchange but if it speaks SMTP, you should be able to use a module such as Mail::Sendmail or the newer Email::Send module to talk to it. What formmail script are you using to process your forms? I'd recommend the nms scripts[1]. HTH, William [1]

Re: PHPerl

2004-09-08 Thread William McKee
that there used to be a commercial app that supported ASP on Linux. Lots of options. William -- Knowmad Services Inc. http://www.knowmad.com -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>

Re: PHPerl

2004-09-08 Thread William McKee
gy, not a language. ActiveState used to make PerlScript which can be used in Win* with ActiveScripting or ASP solutions. I don't use it so don't know the current status. William [1] http://www.apache-asp.org/ -- Knowmad Services Inc. http://www.knowmad.com -- To unsubscribe, e-mail: [E

Re: CGI parameter question

2004-09-08 Thread William McKee
redirect a user elsewhere. William -- Knowmad Services Inc. http://www.knowmad.com -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>

Re: CGI parameter question

2004-09-08 Thread William McKee
rst page. Another option is to use HTML::FillInForm. This route makes setting checkboxes, radio buttons and other annoying form inputs dead simple. HTH, William -- Knowmad Services Inc. http://www.knowmad.com -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

Re: Which interface should I be using for Database Access?

2004-09-01 Thread William McKee
e is a PPM for DBI and DBD::ODBC. Fire up ppm3 and see for yourself. I have an old code sample (ergo, not the best form but it works) which I will send to you offlist. Good luck, William -- Knowmad Services Inc. http://www.knowmad.com -- To unsubscribe, e-mail: [EMAIL PROTECTED] For addition

Re: Cookie Security

2004-08-31 Thread William McKee
out the Authen::* modules on CPAN as well as CGI::Auth and CGI::Session. Good luck, William -- Knowmad Services Inc. http://www.knowmad.com -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>

Re: File upload question

2004-07-27 Thread William McKee
On Tue, Jul 27, 2004 at 12:37:11PM -0400, Sean Davis wrote: > if ($q->param('upload_file')) { > my $fh=$q->upload('upload_file'); ^^ Perhaps that should be param, not upload. I'm not familiar with an upload method in the CGI module. Wi

Re: Unexpected CGI and HTML

2004-06-24 Thread William McKee
list as lots of folks there use HTML::Template (I'm not one of them so don't know why a div would give it problems). Since you're using CGI.pm to generate all of your html, you might want to check the docs for it. HTH, William -- Knowmad Services Inc. http://www.knowmad.com --

Re: Checkbox_group

2004-06-16 Thread William McKee
r Apache::Session (which does not require Apache or mod_perl) for more details. William -- Knowmad Services Inc. http://www.knowmad.com -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>

joining form input in parser

2004-06-11 Thread William Kolln
value); } elsif ($name eq 'exclude') { @exclude = split(/,/,$value); } else { if ($FORM{$name} && ($value)) { $FORM{$name} = "$FORM{$name}, $value"; } elsif ($value) { $FORM{$name} = $value;

Re: writing to a file

2004-05-20 Thread William McKee
7;t think so if it's in the same directory as the cgi script. These questions all depend on how your ISP has configured the webserver. HTH, William -- Knowmad Services Inc. http://www.knowmad.com -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTEC

Re: Please Help ! this might be simple but not for me :(

2004-05-06 Thread William McKee
On Wed, May 05, 2004 at 05:44:42PM -0700, [EMAIL PROTECTED] wrote: > I have a html file and i want to do a grep for the accourance of "

Re: A cookie is not stored

2004-05-05 Thread William McKee
$cookie2 = $query->cookie(-name=>'answers', -value=>\%answers); print $query->header(-cookie=>[$cookie1,$cookie2]); HTH, William -- Knowmad Services Inc. http://www.knowmad.com -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional command

RE: Sorting directory content using creation time

2004-02-04 Thread Li, William
ir in descending order w/ time of creation as well. I could read each handle, do a stat to sort them, then process. Thoughts? Thanks in advance! -Original Message- From: Wiggins d Anconia [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 04, 2004 1:40 PM To: Li, William; [EMAIL PROT

Sorting directory content using creation time

2004-02-04 Thread Li, William
Hi, Does anybody know if there is an option in readdir to return the file list in the order of their creation time? Or know of a way to do that? Been reading the perldoc w/o much luck. Thanks! -- This message is intend

Re: HTTP headers

2003-01-16 Thread William McKee
=> 1 to tell the server not to generate headers because you are doing it yourself. I've never had a need to do this myself. Good luck, William -- Knowmad Services Inc. http://www.knowmad.com -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: HTTP headers

2003-01-14 Thread William McKee
rs. Try using CGI.pm to alter the headers <http://search.cpan.org/author/LDS/CGI.pm-2.89/CGI.pm#CREATING_A_STANDARD_HTTP_HEADER_> You can also insert a meta tag into the document which most web browsers will honor: See <http://www.submitcorner.com/Guide/Meta/expires.shtml> for more i

Re: How can I switch to a Window like using the combination ALT+TAB.

2003-01-14 Thread William McKee
n will > be killed only after x seconds). I want to write a Perl script that test if > a window "Search Window1" exist then do only a switch to it else then create > a new Window. Sounds like you need Javascript, not Perl. Try the Javascript resources at http://www.irt.org.

Re: taint mode

2003-01-10 Thread William McKee
ces in these files include \s. You should read up on regex's in Perl and either fix the regex or just turn off taintmode. Good luck, William -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: taint mode

2003-01-10 Thread William McKee
Try working with the above to see if you can get your array untainted *before* passing it off to chmod. Good luck, William -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Helps needed with POST

2002-11-19 Thread Wenjie Wang\(William\)
Greetings, I'm a C++ programmer and It's my first attempt to code in perl. I'm behind a firewall and access WWW via a proxy server. I got no problem to GET a request from a web site by using LWP::UserAgent, if I have the correct proxy setting. I tried to do it in a similar way with POST request,

Re: sending an email attachment

2002-11-08 Thread William McKee
sked many times before: <http://www.mail-archive.com/beginners-cgi@;perl.org/msg06517.html> William -- Lead Developer Knowmad Services Inc. || Internet Applications & Database Integration http://www.knowmad.com -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

Re: Help: perl DBI

2002-10-30 Thread William McKee
Hi Sarah, You probably should sign up for the dbi-users mailing list at <http://dbi.perl.org/mailinglists.html>. You can catch db errors using an eval statement. Search the DBI docs for eval and RaiseError for more info. HTH, William -- Lead Developer Knowmad Services Inc. || In

Re: Generate Word document from text

2002-10-30 Thread William McKee
On 30 Oct 2002 at 15:02, RaghuNath L(Raghu) wrote: > How i redirect std err and out Read the manual with `perldoc -f open` or `perldoc perlfunc`. William -- Lead Developer Knowmad Services Inc. || Internet Applications & Database Integration http://www.knowmad.com -- To unsubsc

Re: Generate Word document from text

2002-10-30 Thread William McKee
ld do the job. Check out the Win32::OLE module. William -- Lead Developer Knowmad Services Inc. || Internet Applications & Database Integration http://www.knowmad.com -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: using includes or exec to call a CGI

2002-10-25 Thread William McKee
Hi Al, Have you checked that your web host allows include or exec methods in SSI's. This is frequently disabled as a security precaution. William -- Lead Developer Knowmad Services Inc. || Internet Applications & Database Integration http://www.knowmad.com -- To unsubscrib

Re: A security problem

2002-10-25 Thread William McKee
Hi Octavian, I would suggest that you use session management (I like CGI::Session but Apache::Session should also work) to store the private data about the current user rather than writing it to the second form. Good luck, William -- Lead Developer Knowmad Services Inc. || Internet

RE: replacing numbers around a decimal

2002-10-18 Thread William McKee
$offset_value = substr($value, -$offset); $offset_value = sprintf("%8.2f",$offset_value); return $offset_value; } Good luck, William -- Lead Developer Knowmad Services Inc. || Internet Applications & Database Integration http://www.knowmad.com -- To unsubscri

Re: listing modules installed with CPAN

2002-10-18 Thread William McKee
On 17 Oct 2002 at 14:15, Justin Cook wrote: > How can I tell what modules I've installed using CPAN? When I type in 'b' > or 'd' or 'm' I seem to get everything, I only want to know what modules / > bundles I've installed using CPAN. Read the sec

Re: hr; ##syntax error

2002-10-16 Thread William McKee
Robert, You're missing a closing paren on the popup_menu function. William -- Lead Developer Knowmad Services Inc. || Internet Applications & Database Integration http://www.knowmad.com -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Webhosting that supports mod_perl

2002-10-11 Thread William McKee
ed to know about server administration, but it's valuable knowledge. Good luck, William -- Lead Developer Knowmad Services Inc. || Internet Applications & Database Integration http://www.knowmad.com -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Installing GD 2.0.1

2002-10-07 Thread William McKee
stalls. Also be sure to read the readme file that comes with GD.pm. Finally, here's the command line I used when I did a local install of the ImageMagick library: perl Makefile.PL INC=-I/local/web/knowmad/bin/include `cat ~/.perl_dirs` Good luck, William -- Lead Developer Knowmad S

Re: Planning & Implementing a web project

2002-09-30 Thread William McKee
discussion forum ). It sounds like you need to acquaint yourself with the project development lifecycle. Check out the current series of articles at DevShed <http://www.devshed.com/Talk/Practices/>. Good luck, William -- Lead Developer Knowmad Services Inc. || Internet Applications

Re: Editing a file....

2002-09-20 Thread William McKee
doc -f open' for details. > And the 2nd application I want to implement is to find a given username and > password and if found remove them from the file. Once you figure out how to do the above, this will become more clear. Work on some code and post a sample if you have prob

Re: Text output formating

2002-09-19 Thread William McKee
Roberto, I think you want the escapeHTML function from CGI. See the docs for details. William -- Lead Developer Knowmad Services Inc. || Internet Applications & Database Integration http://www.knowmad.com -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-

RE: What could go wrong with closing an FH ?

2002-09-19 Thread William McKee
Todd, I think you may want to read Randall's article about this very subject. <http://www.stonehenge.com/merlyn/LinuxMag/col39.html> Good luck, William -- Lead Developer Knowmad Services Inc. || Internet Applications & Database Integration http://www.knowmad.com --

Re: sort

2002-09-19 Thread William McKee
to an array before doing the sort such as follows (WARNING: untested code): my @lines; while(){ push @lines, $_; } reverse @lines; while (@lines) { @file=split(/\|/,$_); If ($file[0] ne ""){ print "$field[0] | $field[1] | $field[2]"; }

Re: Date Question(s)

2002-09-18 Thread William McKee
I'd suggest checking out Date::Manip from CPAN. I use it to do date comparisons in some of my scripts. Why do you need to convert the date when writing it to the file. Just save the epoch time and use Date::Manip to eval the epoch time in the file to the current epoch time. William --

Re: why oh why?

2002-09-18 Thread William McKee
printf (perldoc -f sprintf) for details about the formatting options of the input string. Hope that helps, William -- Lead Developer Knowmad Services Inc. || Internet Applications & Database Integration http://www.knowmad.com -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Rounding a number

2002-09-12 Thread William McKee
$quantity; print "Price each: $priceEach\n"; print "Rounded: " . Round($priceEach) . "\n"; print "4 places: " . Round($priceEach, 4) . "\n"; Doing math that requires rounding is a challenge in Perl. This function makes rounding a little less challen

Re: [htmltmpl] form and frames - HELP !!!

2002-04-11 Thread William R Ward
.cgi, with a header, > a left frame and output of abc.cgi, as the right part of the frame page. > How can I target just one frame of the next page. > Help is appreciated alot. It's just like a link: add TARGET=whatever to your tag. --Bill. -- William R Ward[EM

learn java

2002-01-29 Thread william
Where can I learn java (beginner) instead on the java.sun.com?   IncrediMail - Email has finally evolved - Click Here

RE: Boolean operators...

2001-09-28 Thread JONES, WILLIAM C
See below - > -- > From: Wagner > Sent: Friday, September 28, 2001 7:40 AM > To: [EMAIL PROTECTED] > Subject: Boolean operators... > > Hi, > > I'm trying to do a comparisson with boolean operators and it is not > working... > > Example: > $user1 > $user2 > $passw

Re: GD Problem.

2001-06-22 Thread William McKee
e types but you can find the common ones. Best, William

RE: Extra ?

2001-06-21 Thread William McKee
h fields may contain multiple values, is there a way to determine the number of values returned by $q->param(foo)? Thanks, William

Re: php -> perl

2001-06-21 Thread William McKee
and I use too many parentheses))). I'm glad to see someone paying attention. After I sent that email, I realized that the snippet of code I sent was indeed in error. The two newlines were appended further down in my script (after a Content- Disposition header that I was sending in order to begin a download). Thanks for correcting it. William

Re: php -> perl

2001-06-15 Thread William McKee
ver, I had to manually send the header because CGI.pm wouldn't work for me. Perhaps it was a bug in an older version I was using at the time. To do it manually, use the following and set $mime_type to whatever value you want (see W3C website for complete list): print "Content-type: $mime_type\n"; HTH, William

Re: Perplexing header problem

2001-06-13 Thread William McKee
Peter, You're not sending any data besides the header. Try adding the following to the end of your script: else { print "No actions to take" } It's always a good idea to check yourself with this kind of catchall code. William -- [EMAIL PROTECTED] www.knowmad.com Charlotte, NC

Re: LWP // Any answers?

2001-06-11 Thread William McKee
my $q = new CGI; print $q->header; print "things for the user to see..."; Hope this helps, William

Re: Erratic server errors apparently caused by missing header.

2001-06-07 Thread William McKee
roduction to prevent giving out too much information to visitors. Hope this helps, William

Re: tutorial proposition (was: Re: Succinct Code, Use of my $var and global vs local)

2001-06-07 Thread William McKee
On 7 Jun 2001, at 2:02, fliptop wrote: > does anyone feel this would be helpful? i'd put in the time only if > other beginners thought it would be of use. Absolutely! William

Re: This n' that

2001-06-07 Thread William McKee
all, tx) VALUES (?,?,?,?,?,?,?)"; $sth = $dbh->prepare($sqlstatement) || die $dbh->errstr; $sth->execute($newfreq, $newloc, $newdesc, $newfreqtype, $newcat, $newcall, $newtx) || die $dbh->errstr; Good luck, William

Re: Session.pm

2001-06-04 Thread William McKee
Michael, The error message indicates that Perl cannot find the Session.pm module. Be sure you have installed the module properly. If you have to install it locally on an ISP, then you'll need to add: use lib '/path/to/your/modules/'; Hope this helps, William On 3 Jun 2001, at

Re: Session.pm

2001-06-04 Thread William McKee
Michael, The error message indicates that Perl cannot find the Session.pm module. Be sure you have installed the module properly. If you have to install it locally on an ISP, then you'll need to add: use lib '/path/to/your/modules/'; Hope this helps, William On 3 Jun