Re: bind values and cgi params

2005-01-08 Thread Scott R. Godin
no additional jiggery-pokery going on (like people trying to inject sql into your query with ?position="25;delete from SOMETABLE;" or however they do it. -- Scott R. Godin Laughing Dragon Services www.webdragon.net -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>

Re: Database Rows Returned

2005-01-08 Thread Scott R. Godin
t for when you need to limit. -- Scott R. Godin Laughing Dragon Services www.webdragon.net -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>

Re: Simple table question?

2005-01-08 Thread Scott R. Godin
print Tr( td( [EMAIL PROTECTED] )); } print end_table(); Off the top of my head ... that should do it. note that his use of [EMAIL PROTECTED] there is a convenient shortcut for another CGI.pm trick : passing an arraryref to one of the subs will span it across the contents. print Tr( td( [

Re: Simple table question?

2005-01-08 Thread Scott R. Godin
y click the image filenames above to preview each image before making your decision."), p("Note that this only removes the selected images from the database entry, and does ", b("not"), " delete the files from the directory itself.") ); push @table, ( p({-align=>'center'}, submit(-name=>'delete', -label=>'Remove Selected Images') ), end_form() ); return @table; } then somewhere in the middle of the other html output I need merely do print existing_images($requested_itemid); -- Scott R. Godin Laughing Dragon Services www.webdragon.net -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>

Re: Insecure dependency in glob ... with -T switch

2005-01-21 Thread Scott R. Godin
, but anyway... -- Scott R. Godin Laughing Dragon Services www.webdragon.net -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>

Re: Module confusion

2005-02-08 Thread Scott R. Godin
#x27;s environment, however ssh is a viable alternative. -- Scott R. Godin Laughing Dragon Services www.webdragon.net -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>

Re: perl-CGI module - post method

2005-02-08 Thread Scott R. Godin
; since he clearly illustrates the use of the object-oriented syntax in his example and in which case you want to get the params AFTER creating the cgi-object my %params = $cgi->Vars; which ensures that you also get multi-value s as separate values. too. -- Scott R. Godin Laughing Dr

Re: perl-CGI module - post method

2005-02-09 Thread Scott R. Godin
Ovid wrote: --- "Scott R. Godin" <[EMAIL PROTECTED]> wrote: his example and in which case you want to get the params AFTER creating the cgi-object my %params = $cgi->Vars; which ensures that you also get multi-value s as separate values. too. $cgi->Vars separates multi

CGI.pm internals question

2005-07-13 Thread Scott R. Godin
under what circumstances is the CGI.pm's STORE autoloaded method called? is it used only when you assign values to the object, or is it only used when receiving values (or multi-values) from the webserver query? -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMA

Re: CGI.pm internals question

2005-07-14 Thread Scott R. Godin
Bob Showalter wrote: Scott R. Godin wrote: under what circumstances is the CGI.pm's STORE autoloaded method called? is it used only when you assign values to the object, or is it only used when receiving values (or multi-values) from the webserver query? It is part of the tied

Re: perl-CGI module - post method

2005-07-18 Thread Scott R. Godin
Scott R. Godin wrote: Ovid wrote: --- "Scott R. Godin" <[EMAIL PROTECTED]> wrote: his example and in which case you want to get the params AFTER creating the cgi-object my %params = $cgi->Vars; which ensures that you also get multi-value s as separate values.

Re: perl-CGI module - post method

2005-07-18 Thread Scott R. Godin
Scott R. Godin wrote: Ovid wrote: --- "Scott R. Godin" <[EMAIL PROTECTED]> wrote: his example and in which case you want to get the params AFTER creating the cgi-object my %params = $cgi->Vars; which ensures that you also get multi-value s as separate values.

Re: Script execution time.

2005-08-04 Thread Scott R. Godin
Zentara wrote: On Wed, 3 Aug 2005 03:00:01 -0700, [EMAIL PROTECTED] (Sara) wrote: I have to test/optimize a script on a shared server. The script contains a couple of mySQL queries etc. Is there a way that I can see the query execution time (like in phymyAdmin) and total script execution tim

changing action with appended key/value pairs in a POST

2005-08-24 Thread Scott R. Godin
I have a multi-stage cgi I'm currently working on, and as I progress thru the stages (the form uses POST not GET for reasons of data-size) I was hoping to be able to simply add ?step=confirm or ?step=finish to the form action ( -action=>"$htmlform{action}?step=confirm", ... ) However it's not w

Re: changing action with appended key/value pairs in a POST

2005-09-10 Thread Scott R. Godin
Todd W wrote: "Scott R. Godin" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] [snip] able to simply add ?step=confirm or ?step=finish to the form action ( -action=>"$htmlform{action}?step=confirm", ... ) [snip] You could refer to the CGI.pm docs

Re: Perl DBI / SQL Question

2005-09-16 Thread Scott R. Godin
Vance M. Allen wrote: Sorry if the cross-posting wasn't appropriate, but I need help with this and am not sure if it's more appropriate to post under CGI or DBI since it involves both...I want to be sure that I can get help from the best source. My question is probably a simple answer, but I a

problems with CGI.pm upload feature

2005-09-16 Thread Scott R. Godin
script is at http://phpfi.com/78748 I followed the instructions in CGI.pm as best I could, and from what I read the upload() function is supposed to return a filehandle ? (it doesn't say whether this is a direct FH to the tempfile or not) I had dome some preliminary testing with one-liners an

Re: problems with CGI.pm upload feature

2005-09-17 Thread Scott R. Godin
Wiggins d'Anconia wrote: Scott R. Godin wrote: script is at http://phpfi.com/78748 I followed the instructions in CGI.pm as best I could, and from what I read the upload() function is supposed to return a filehandle ? (it doesn't say whether this is a direct FH to the tempfile or n

Re: problems with CGI.pm upload feature

2005-09-18 Thread Scott R. Godin
Wiggins d'Anconia wrote: Bill Stephenson wrote: On Sep 16, 2005, at 7:51 PM, Scott R. Godin wrote: Wiggins d'Anconia wrote: Scott R. Godin wrote: script is at http://phpfi.com/78748 I followed the instructions in CGI.pm as best I could, and from what I read the upload() function i

Re: problems with CGI.pm upload feature

2005-09-19 Thread Scott R. Godin
Scott R. Godin wrote: script is at http://phpfi.com/78748 Possibly used the wrong web browser to upload the file. Not all of them support this feature. Firefox does not. It will however provide the CGI script with the file name. Firefox doesn't support file uploads? I use it al

Re: problems with CGI.pm upload feature

2005-09-20 Thread Scott R. Godin
Charles K. Clarkson wrote: Scott R. Godin <mailto:[EMAIL PROTECTED]> wrote: : Regrettably this isn't getting me any closer to a resolution -- : what about the code? can anyone see anything I might have : overlooked? done wrong? should it, in fact, be working right : now? Did you

Re: Query on sendmail problem

2005-10-07 Thread Scott R. Godin
Dale wrote: Hi, I'm hoping someone can help me with an issue I've got with, I assume, sendmail. I've copied part of a script below. If I use the first To: line (which takes the e-mail address from a file - and this works) then a mail doesn't arrive. If, however, I used the second To: line (wh

Re: Replacing carriage returns in a variable

2001-10-15 Thread Scott R. Godin
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Guy Tubbs) wrote: > but it does the same thing, i.e. I get: > > Line1 > Line2 > > What I need is: > > Line1Line2 > > Do you know how to get rid of the returns altogether? s/\015\012|\015|\012//g

Re: accessing yahoo mail through text mode/shell

2001-11-30 Thread Scott R. Godin
rivately for more > information. One word of warning: You SPAM with it and you get dropped like > a turd in an operating room. > > Mike > Hopefully sterilized as well so they don't continue to breed. :-) print pack "H*", "4a75737420416e6f74686572204d61635065726

Re: uploading file

2001-11-30 Thread Scott R. Godin
ays the best option as the cgi-docs.html file that COMES with a fresh install of CGI.pm is updated more frequently than the one on the website is. (for mysterious reasons known only to Lincoln :-) print pack "H*", "4a75737420416e6f74686572204d61635065726c204861636b65722c0d";

Re: Program dilema

2001-11-30 Thread Scott R. Godin
ires Class::Multimethods also to be installed) #!perl use warnings; use strict; use Quantum::Superpositions; my @myarray = qw( 10 34 6 87 9 ); print "ok any 'eq 10'\n" if any(@myarray) eq "10"; print "not ok all '< 85'\n" unless all(@myar

Re: (End this thread) Re: Fwd: Fw: PLEEEEEEEASE READ!!!

2001-12-03 Thread Scott R. Godin
ated > so much, uh, spam. {MASSIVE snippage} uh, not to mention REAMS of attributes and quoted text (ugh) that were better left unposted. =:P print pack "H*", "4a75737420416e6f74686572204d61635065726c204861636b65722c0d"; -- Scott R. Godin| e-mail : [EMAIL PROTECT

Re: Need basic commands on perl programming

2001-12-07 Thread Scott R. Godin
e plenty of example scripts there as well. print pack "H*", "4a75737420416e6f74686572204d61635065726c204861636b65722c0d"; -- Scott R. Godin| e-mail : [EMAIL PROTECTED] Laughing Dragon Services |web : http://www.webdragon.net/ It is not necessary to cc: me vi

Re: Next 10 Results Help Needed

2001-12-07 Thread Scott R. Godin
inancial incentive? :) print pack "H*", "4a75737420416e6f74686572204d61635065726c204861636b65722c0d"; -- Scott R. Godin| e-mail : [EMAIL PROTECTED] Laughing Dragon Services |web : http://www.webdragon.net/ It is not necessary to cc: me via e-mail unless you mean to speak off-group. I read these v

Thumbnail images on-the-fly

2002-01-16 Thread Scott R. Godin
efficient for a job like this. any pointers? I'm happy to toddle off and download and read my face off -- that's not a problem.. I'd just like to have some indication on which direction to start walking. :-) print pack "H*", "4a75737420416e6f74686572204d6163506572

Re: Thumbnail images on-the-fly

2002-01-18 Thread Scott R. Godin
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Scott R. Godin) wrote: Many thanks to all of you who responded. :-) One of the things I love the most about these lists -- that one can get so many different perspectives on a problem and solution, because it gives one so much more

Re: I want out, but I'm no idiot.

2001-10-25 Thread Scott R. Godin
l cannot get out. Until now they didn't. Obviously, they > found a way to get off the list. now you all know why I would choose a usenet newsreader over a mailing list every. single. time. whenever possible. -- Scott R. Godin| e-mail : [EMAIL PROTECTED] Laughing Dragon Service

SSL and CGI

2001-10-25 Thread Scott R. Godin
is there a reasonably simple way for a cgi script to tell whether it's being accessed through SSL or not? just curious. I'd like to play with the thought a bit, and want to have my test script report an error if it gets accessed without SSL. -- Scott R. Godin| e-mai

CGI->compile();

2001-10-25 Thread Scott R. Godin
if httpd.conf has a pointer to a perl script with CGI->compile(':all'); in it? just curious.. the docs are a little vague on this point. -- Scott R. Godin| e-mail : [EMAIL PROTECTED] Laughing Dragon Services |web : http://www.webdragon.net/ -- To unsubscribe, e-mai

Re: Docs

2001-10-26 Thread Scott R. Godin
u should also consider that the docs that come with CGI.pm when you build it include an html formatted version of the latest... Lincoln doesn't always update the website link above, but what comes with CGI.pm is *always* updated. :) -- Scott R. Godin| e-mail : [EMAIL PROTECTED] Lau

Re: (simple) cgi.pm question

2001-10-26 Thread Scott R. Godin
rt keys %params; # that is the correct idiom, right? > instead of: > > print "$params{q001}\t$params{q002}\t ... $params{q100}"; # 100 times > > "Perl is designed to give you several ways to do anything, so consider > picking the most readable one."

Re: somone please help

2001-10-26 Thread Scott R. Godin
don't press when you mean to press hehehe :) -- Scott R. Godin| e-mail : [EMAIL PROTECTED] Laughing Dragon Services |web : http://www.webdragon.net/ -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

mod_perl and nntp.perl.org

2001-10-28 Thread Scott R. Godin
ought, but I'd like to know perhaps a better place to pose such a question.. beginners.cgi obviously isn't the best place for it, but it's the closest thing I could find, here, to a starting point :) anyone? -- Scott R. Godin| e-mail : [EMAIL PROTECTED] Laughing

Re: mod_perl and nntp.perl.org

2001-10-30 Thread Scott R. Godin
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Ask Bjoern Hansen) wrote: > [EMAIL PROTECTED] (Scott R. Godin) writes: > > > aside from the mailing lists @apache.org I haven't seen much else, and > > having a fair preference for a usenet-style discussion as o

Re: Free Mac Private Perl server

2001-10-31 Thread Scott R. Godin
acperl.org/ MacPerl is currently in a beta build with regards to perl 5.6.1. That version does not currently support .cgi scripts as of yet. The 520r4 build (5.004) of MacPerl does, but if your .cgi's are large and consume much temporary memory while running, they may not work under this me

Re: quotemeta regex

2001-10-31 Thread Scott R. Godin
=map;where=other;item="p aram1%20param2%20param3" try encoding the string using CGI.pm's escape functions (see cgi-docs.html for URI escapes) -- Scott R. Godin| e-mail : [EMAIL PROTECTED] Laughing Dragon Services |web : http://www.webdragon.net/ -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: CGI Login in IE but NOT Netscape

2001-10-31 Thread Scott R. Godin
but what are we doing? living in the stone-age of HTML back from before 1997. Everyone's SO scared of scaring customers with broken web-browsers away from their sites, that they practically ENCOURAGE the browser manufacturers to continue their sloppy practices. "I curl my lip at you,

Re: Free Mac Private Perl server

2001-10-31 Thread Scott R. Godin
e links on the side at dev.macperl.org) so that you can see what's still open, and report your own. I'm very pleased with 5.6.1b1 so far. sweetest build I've worked with yet, and I haven't touched the older version in ages. -- Scott R. Godin| e-mail : [EMAI

Re: CGI.pm popup_menu

2001-10-31 Thread Scott R. Godin
popup_menu(-name=>'baths', -Values=>\%labels, -default=>'1'), submit(-name=>'submit', -Value=>'Click Me'), end_form(), end_html; the following output gets produced: Content-Type: text/html; charset=ISO-8859-1

Re: Printing Hash Keys

2001-11-16 Thread Scott R. Godin
now about a certain command, like vec, you can open up a quick MacPerl window and write #!perl vec(); command-click the word 'vec' while in MacPerl and MacPerl hands it off to Shuck which looks up the term in the pod files. (in this case, perlfunc.pod) -- Scott R. Godin|

Re: Printing Hash Keys

2001-11-16 Thread Scott R. Godin
ngs as pipes, although OS X does. MacPerl does have support for one-liners, but in a slightly different manner from what you're used to, since the ClassicMacOS doesn't have and never has had (or needed, IMHO), a command-line. -- Scott R. Godin| e-mail : [EMAIL PROTECTED]

Re: Sort or Array Assigning problem???

2001-11-16 Thread Scott R. Godin
t", @sortedrands), "\n"; # I don't understand why you do this: > foreach $anumber (@sorted_a) { > @sorted_field = split (/,/, $anumber); when the @sorted_a's list items are not themselves separated by commas, but individually in the array elements themsel

Re: MySQL and Perl...

2001-11-16 Thread Scott R. Godin
ter than the origianl documentation ^^ funny, I parsed this as 'complex paper folding' :-) > http://dbi.perl.org > http://www.mysql.com -- Scott R. Godin| e-mail : [EMAIL PROTECTED] Laughing Dragon Services |web : http

Re: force a refresh?

2001-11-17 Thread Scott R. Godin
e, then redirecting the user to that file, but if they have viewed it > before, they are getting the old file. > thanx try the -expires=>$value pair in the start_html() function of CGI.pm -- Scott R. Godin| e-mail : [EMAIL PROTECTED] Laughing Dragon Services |web : htt

Re: How Should I Install Perl?

2001-11-17 Thread Scott R. Godin
e but it doesn't exist. Do I have to test Perl > scripts only on servers or it can be done on my PC? And > what does it mean: "Type % perl -e 'print join("\n",@INC)'" ? Where should > I type it? > Thanks a lot. get ActiveState's perl for Windows.

Re: XML Header

2001-11-22 Thread Scott R. Godin
1998/06/xmlspec.dtd> and you *should* use it. for example http://www.w3.org/XML/1998/06/xmlspec-v21.dtd";> CGI.pm emits an XHTML header by default, unless you specify -no_xhtml in the invocation of use CGI qw/ :blah -no_xhtml /; -- Scott R. Godin| e-mail : [EMAIL PROTECT

Re: Getting past "Use of uninitialized value..."

2001-11-21 Thread Scott R. Godin
hen slide back out to main again. a semi-slick workaround for a semi-ugly problem. supresses all those 'used only once' warnings quite nicely though. -- Scott R. Godin| e-mail : [EMAIL PROTECTED] Laughing Dragon Services |web : http://www.webdragon.net/ It is not necessa

Re: CGI.pm problems continued

2001-11-20 Thread Scott R. Godin
ng with references, by all means use %in, but you'll find the similarities between the objects to be *very* similar to how CGI works with objects, and also a few peeks at perlref, perllol, perldsc to be of enlightening proportions. -- Scott R. Godin| e-mail : [EMAIL PROTECTE

Re: Table Options.

2001-11-24 Thread Scott R. Godin
ts and pieces, as well as CSS references. I find that using CSS and embedding Stylesheets in my CGI's to be of much more use than attempting to include dozens of tags and color tags and whatnot. Also a validator like <http://validator.w3.org/> and the companion CSS validator