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] http://nms-cgi.s

Re: PHPerl

2004-09-08 Thread William McKee
On Wed, Sep 08, 2004 at 12:41:37PM -0400, Chris Devers wrote: > Be aware though that Apache::ASP doesn't seem to be used nearly as > widely as some of the other template frameworks. Good point, Chris. I certainly have never used it... While on the subject of ASP support, I believe that there used

Re: PHPerl

2004-09-08 Thread William McKee
On Wed, Sep 08, 2004 at 06:56:37PM +0300, Octavian Rasnita wrote: > Is there a way to embed Perl programs in html like PHP can do? > I heard that Perl can be used in ASP files, but I am wondering if there is > an Apache module for that task. Check out Apache::ASP[1]. ASP is a technology, not a lan

Re: CGI parameter question

2004-09-08 Thread William McKee
On Wed, Sep 08, 2004 at 11:06:58AM -0400, Sean Davis wrote: > Thanks for the clarification. This is as I suspected and not hard. I > guess I have to do reset on my own, then, as well? Not sure what you mean by "do reset". I have had problems where "smart" browsers cached form values that made i

Re: CGI parameter question

2004-09-08 Thread William McKee
On Wed, Sep 08, 2004 at 09:18:17AM -0400, Sean Davis wrote: > I would like to be able to have the page switch and any other visible > parameters on the page be persistent and visible to the user. I would > also like to be able to use the reset button for the form to reset the > values. Hi S

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

2004-09-01 Thread William McKee
On Wed, Sep 01, 2004 at 09:16:53AM -0600, Siegfried Heintze wrote: > This is GREAT! But being a beginner, I don't know what to do next. Do I > download the source? Is there a PPM module? Where can I find an example that > accesses Microsoft Access? Hi Siegfried, I believe that there is a PPM for

Re: Cookie Security

2004-08-31 Thread William McKee
On Tue, Aug 31, 2004 at 09:31:52AM -0600, Siegfried Heintze wrote: > I have explained the performance problems with Microsoft Access many times > to my customer and he does not listen. (This is because it is not a problem > with only he and I prototyping the site). What you describe is a performanc

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. William -- Knowmad Services Inc. http:/

Re: Unexpected CGI and HTML

2004-06-24 Thread William McKee
On Thu, Jun 24, 2004 at 01:42:35PM -0400, Sean Davis wrote: > >From where is the tagset coming? It isn't a problem here, of > course, but if I try to use this with HTML::template, it is causing > problems. Any ideas? Hi Sean, That's a good question. I don't understand what problems you forsee

Re: Checkbox_group

2004-06-16 Thread William McKee
On Wed, Jun 16, 2004 at 11:59:02AM +0100, Werner Otto wrote: > Any ideas? Here's an untested idea as I've never had a need to do this. Create a hidden field with the name 'hdel' and insert the $hostip value in there. I would expect that when you request the 'hdel' parameter from CGI, that it would

Re: writing to a file

2004-05-20 Thread William McKee
On Thu, May 20, 2004 at 09:02:18AM -, PerlDiscuss - Perl Newsgroups and mailing lists wrote: > Is there any easy way I can find out why the file cant be opened (is it > permissions?). Yes, print the error message that Perl provides in $!. For example, eval { open (LOGFILE, ">> lo

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
Hi Alejandro, The CGI.pm docs spell out how to use multiple cookies: To create multiple cookies, give header() an array reference: $cookie1 = $query->cookie(-name=>'riddle_name', -value=>"The Sphynx's Question"); $cookie2 = $query->cookie(-name=>'answe

Re: HTTP headers

2003-01-16 Thread William McKee
Hi Philip, I looked at the script. How are you running it? From the command line or from a web server? It works fine on the comand line and from the server for me. What server are you using to display it? I'm using Apache. If you are running it from the server you may need to include -nph => 1 t

Re: HTTP headers

2003-01-14 Thread William McKee
On Tue, Jan 14, 2003 at 09:05:42PM +, Philip Pawley wrote: > Can I add an HTTP header to my web-site's server's response with perl? > (It isn't my server). The server is running perl 5.6.1. If I can get > it to work, I want to start using "Expires:" headers. Try using CGI.pm to alter the heade

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

2003-01-14 Thread William McKee
On (14/01/03 15:12), [EMAIL PROTECTED] wrote: > I ame using a script, when I click on the button button1 it generate a > window "Search Window1" like Google and when I click a second time on the > button1 it generate the "Search window1" as a new session (evry session will > be killed only after x

Re: taint mode

2003-01-10 Thread William McKee
> since I removed all unwanted files from the array @files earlier while > reading the directory contents, I simply changed: > $file =~ /^(\w\.)+$/; > to > $file =~ /^(.+)$/; > and it works Glad you were able to get it working. Unfortunately, the regex you have chosen is effectively bypassing

Re: taint mode

2003-01-10 Thread William McKee
On (09/01/03 17:35), Alex Blum wrote: > ok. there's two options: > 2. I fix this. Good choice! > can someone help me please? I'm stuck with this, and don't know, how to > solve the problem. just in case: I did read the > "Chapter 23. Security" of programming perl (3rd edition) and still don't > k

Re: sending an email attachment

2002-11-08 Thread William McKee
On 8 Nov 2002 at 11:37, Anthony E. wrote: > i need to write a program that will send an email with > some text in it as the body, and also have a word > document attached to it. > > any suggestions on a module to do this? Hi Anthony, Check the archives. This question has been asked many times b

Re: Help: perl DBI

2002-10-30 Thread William McKee
Hi Sarah, You probably should sign up for the dbi-users mailing list at . 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. || Internet Appli

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 unsubscribe, e-m

Re: Generate Word document from text

2002-10-30 Thread William McKee
On 29 Oct 2002 at 21:13, Alex Agerholm wrote: > Does anyone know a way for me to generate a Word document from som text I > have in Perl ? I want to be able to make a few headlines and a header and > footer. Have you checked CPAN? Although I've never used it from Perl, OLE would do the job. Check

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 unsubscribe, e-mail: [E

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 Applicat

RE: replacing numbers around a decimal

2002-10-18 Thread William McKee
Hi Andrew, I think your approach should work fine as long as you put your data into a standard format. Perl doesn't differentiate between strings or numbers. A few suggestions: 1. encapsulate this code into a generic function, or method if you're doing OOP 2. use a constant or a

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 section about autobundle in `perldoc CPAN`. William -

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
On 11 Oct 2002 at 1:09, Ramon Hildreth wrote: > Hi, Does anyone know of a good web host that > Supports mod_perl? Ramon, >From my experience, you're going to have a hard time finding a host that offers shared hosting with mod_perl due to the was mod_perl shares scripts globally. Hopefully this

Re: Installing GD 2.0.1

2002-10-07 Thread William McKee
Hi Margaret, Are you installing these files as root or as a local user? You may need to give Perl the path to the includes directory for gd when you run perl Makefile.PL using the -I directive. Try reading for more info on doing local installs. Al

Re: Planning & Implementing a web project

2002-09-30 Thread William McKee
On 28 Sep 2002 at 18:58, MMKHAJAH wrote: > I have a fairly good experince with Perl. I can program under strict, do > some OO and connect to databases. Up until this point I didn't do any real > big script. So I wonder how to plan and implement big projects ( like web > protal, discussion forum ).

Re: Editing a file....

2002-09-20 Thread William McKee
On 19 Sep 2002 at 18:48, Greg Schiedler wrote: > #!/usr/bin/perl > # > $username=$ARGV[0]; > $password=$ARGV[1]; > $newpassword=$ARGV[2]; > # > perl -pi -e > 's/^($username)(\s+.*)($password)(.*)$/${1}${2}$newpassword${4}/' > users-file.txt You're already in perl so you don't need to call it ag

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-mail: [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. Good luck, William -- Lead Developer Knowmad Services Inc. || Internet Applications & Database Integration http://www.knowmad.com -- To unsubscribe, e

Re: sort

2002-09-19 Thread William McKee
On 18 Sep 2002 at 20:43, Daniel Hurtado Brenner wrote: > OK. BUT HOW I CAN DO FOR THIS RESULTS BE: > 4|name four|address four| > 3|name three|address three| > 2|name two|address two| > 1|name|address| To use Fliptop's suggestion, you'll probably need to read your file into an array before doing

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 -- Lead

Re: why oh why?

2002-09-18 Thread William McKee
On 18 Sep 2002 at 18:09, Jimmy George wrote: > I am trying - half heartily right now - to get a DDMM or similar date > back from a users server to write to a file when they fill in an order > form. My first attempt of :- I'm not sure what you're doing with the SSI but here's some code to help mu

Re: Rounding a number

2002-09-12 Thread William McKee
Yet another example of how to do rounding; this time using sprintf (I think I grabbed this from a TechRepublic Perl Tip email) ROUNDING NUMBERS USING SPRINTF Perl doesn't have a function specifically for rounding numbers to a specified number of decimal places. However, you can use

Re: GD Problem.

2001-06-22 Thread William McKee
On 22 Jun 2001, at 3:43, Grierson, Garry (UK07) wrote: > but it just appears as > 'hieroglyphics' on the browser page, obviously this is being interpreted as > text instead of graphical information. That's because you're telling the browser to expect text/html in the Content-type header. > pri

RE: Extra ?

2001-06-21 Thread William McKee
On 21 Jun 2001, at 9:50, Curtis Poe wrote: > > foreach ($q->param) { > > $REQUEST{"$_"}=$q->param("$_"); > > } > > I assume that you know your form better than I do, but are you aware that > the above snippet will only return the first value for a param if that > param has several values? For

Re: php -> perl

2001-06-21 Thread William McKee
On 15 Jun 2001, at 10:25, Curtis Poe wrote: > > 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"; > > With all due respect, your print statement is why I recommend to people > that t

Re: php -> perl

2001-06-15 Thread William McKee
Michael, To change the MIME type being sent from a Perl script, if you are using CGI.pm, just add the -type parameter. For example: print header( -type=>'application/octet-stream' ); I wrote a script that would begin a download by using the Content- Disposition header. However, I had to manuall

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
Joel, Without seeing the rest of your script, I'm guessing that you are sending data to the browser before telling it what you are sending. In other words, if you set $q = new CGI then you need to use print $q->header before sending other data. For example, use CGI; my $q = ne

Re: Erratic server errors apparently caused by missing header.

2001-06-07 Thread William McKee
Peter, Yes, using the 'print header' from CGI.pm is a good idea. However, if you send any output to the browser _before_ issuing this command, you'll continue to see the errors you described. Be sure to look for any statements which would cause ouput to go to the browser before you send the h

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
On 6 Jun 2001, at 14:44, SAWMaster wrote: > So now I'm playing with this line...I think it's where my error is. > $sqlstatement = "INSERT INTO Full (freq, loc, desc, freqtype, cat, call, > tx) VALUES ($newfreq, $newloc, $newdesc, $newfreqtype, $newcat, $newcall, > $newtx)"; > Can someone set me

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 19:38, Michael C

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 19:38, M