Re: why wont images in webpages created with perl show up?

2001-12-05 Thread Mel Matsuoka
der. You definitely don't want the .css file in the same folder as the cgi script! See my previous post... Aloha, mel -- mel matsuoka (vox)1.808.531.5474 Head Geek (fax)1.808.526.4040 Hawaiian Image Productions [EM

Re: why wont images in webpages created with perl show up?

2001-12-05 Thread Mel Matsuoka
ly* access CGI scripts under a directory which has been explictly configured to execute scripts. This is for security reasons. So basically, trying to access anything in /cgi-bin that is /not/ executable will get you a permission denied error. GIF and .css files are not executable, henc

Re: Fwd: Fw: PLEEEEEEEASE DONT BE SO STUPID!!!

2001-12-01 Thread Mel Matsuoka
internet nettiquette, as well as urban-legend detection (http://www.snopes.com), so you don't continue to embarrass yourself in public with dopey things like this. Aloha, mel -- mel matsuoka (vox)1.808.531.5474 Head Geek (fax)

Re: Simple Guestbook "CGI.pm in @INC"???

2001-10-23 Thread Mel Matsuoka
more code that I have no desire to comb through snipped ;)) What's with the "cur" bareword in the my block? And a my() declaration should not be enclosed with braces, but parenthesis. Aloha, mel -- mel matsuoka (vox)1.808.531.5474 Head Geek

Re: Free CGI Hosting?

2001-10-21 Thread Mel Matsuoka
really easy to install a Perl/CGI enabled local Apache webserver. Hope this helps. Aloha, mel -- mel matsuoka (vox)1.808.531.5474 Head Geek (fax)1.808.526.4040 Hawaiian Image Productions [EMAIL PROTECTED] http://hawaiianimage.

Re: strange exclamation marks

2001-10-21 Thread Mel Matsuoka
says that text lines must not exceed 1000 characters. Aloha, mel -- mel matsuoka (vox)1.808.531.5474 Head Geek (fax)1.808.526.4040 Hawaiian Image Productions [EMAIL PROTECTED] http://hawaiianimage.com -- To unsubscr

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

2001-10-21 Thread Mel Matsuoka
one with same problem should do. Report them to who? The Net Cops(tm) ? -- mel matsuoka (vox)1.808.531.5474 Head Geek (fax)1.808.526.4040 Hawaiian Image Productions [EMAIL PROTECTED] http://hawaiianimage.com -- To unsubs

Re: String question...

2001-10-08 Thread Mel Matsuoka
oing the length check, of course. Aloha, mel -- mel matsuokaHawaiian Image Productions Chief Executive Alphageek (vox)1.808.531.5474 [EMAIL PROTECTED] (fax)1.808.526.4040 -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Simple CGI Question

2001-09-29 Thread Mel Matsuoka
ur server logs. And of course, as always, use -w and -T in your shebang line. Aloha, mel -- mel matsuokaHawaiian Image Productions Chief Executive Alphageek (vox)1.808.531.5474 [EMAIL PROTECTED] (fax)1.808.526.4040 -- To unsubscribe, e-mail: [

Perl/Postgres hosting providers (WAS Re: How to save and retreive form)

2001-09-26 Thread Mel Matsuoka
At 12:02 PM 09/26/2001, Mel Matsuoka wrote: >Agreed. > >Now if we could only get web hosting providers to agree as well. Replying to my own post...I was wondering if anyone here can make a recommendation on a GOOD hosting provider that supports Perl5 and PostgreSQL (and PHP4 as well

Re: How to save and retreive form

2001-09-26 Thread Mel Matsuoka
t g r e s q l" > >MySQL is dead. Long Live PostgreSQL. Agreed. Now if we could only get web hosting providers to agree as well. -- mel matsuoka Hawaiian Image Productions Chief Executive Alphageek(vox)1.808.531.5474 [EMAIL PROTECTED]

Re: whats the best cgi/perl book around?

2001-09-25 Thread Mel Matsuoka
http://learn.perl.org/beginners-faq (item 3.3) you might want to check it out for more suggestions, as well as: Uri Guttman's Perl book reviews: http://www.sysarch.com/cgi-bin/perl_books Tom Christiansen's camel Critiques: language.perl.com/critiques/ Perlmonks review page: http://ww

RE: Security Suggestions Please!

2001-09-18 Thread Mel Matsuoka
e that system crackers use, so studying exploit scripts and having a subscription to the BUGTRAQ mailing list (or at least a frequent browsing of the web archives) is a *requirement* for any programmer or sysadmin who is interested in maintaining secure systems. hope this helps...Aloha, m

Re: securing sensitive information in CGI scripts

2001-09-04 Thread Mel Matsuoka
able. So if someone does happen to get in, they can only muck up that database. mel -- mel matsuokaHawaiian Image Productions Chief Executive Alphageek (vox)1.808.531.5474 [EMAIL PROTECTED] (fax)1.808.526.4040 -- To unsubscribe, e-mail: [

Re: securing sensitive information in CGI scripts

2001-09-04 Thread Mel Matsuoka
rrying about your DBI include files and CGI scripts ;) Aloha, mel -- mel matsuokaHawaiian Image Productions Chief Executive Alphageek (vox)1.808.531.5474 [EMAIL PROTECTED] (fax)1.808.526.4040 -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: dynamic table help

2001-08-20 Thread Mel Matsuoka
At 02:41 AM 08/20/2001, Mel Matsuoka wrote: >td( [ 'First Name', $hashref->{'Firstname') ] ), >td( [ 'Last Name', $hashref->{'Lastname') ] ), >td( [ 'Phone Number', $hashref->{'Phonenum') ] ),

Re: dynamic table help

2001-08-20 Thread Mel Matsuoka
] ), td( [ 'Last Name', $hashref->{'Lastname') ] ), td( [ 'Phone Number', $hashref->{'Phonenum') ] ), ] )); print p; ... Where the $hashref key is the original fieldname in your database. I find this much easier to manage in my h

Re: dynamic table help

2001-08-20 Thread Mel Matsuoka
gt;} This code does exactly as it's supposed to :) What you want to do is put your table method /outside/ of the while loop. Otherwise you're just generating a new table for each fetchrow. Aloha, mel -- mel matsuokaHawaiian Image Productions Chief Executive Al

Re: Perl Editors

2001-08-08 Thread Mel Matsuoka
At 02:59 PM 08/08/2001 -0700, Lynn Glessner wrote: >Ultra-Edit has a perl-specific mode (color coding, automatic indenting, the >normal) and has a killer "save to FTP" feature for doing your work on a >windows station and automatically saving to a Unix box. Ultra-Edit has almost everything to rec

RE: Perl Editors

2001-08-08 Thread Mel Matsuoka
and PerlBuilder...at least for me. Aloha, mel -- mel matsuokaHawaiian Image Productions Chief Executive Alphageek (vox)1.808.531.5474 [EMAIL PROTECTED] (fax)1.808.526.4040 -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: PERL Array to hash table help

2001-08-08 Thread Mel Matsuoka
loop. Or a better way would be to use the fetchall_arrayref() method. In one fell swoop, this will return the whole dataset with each element of the array as a reference to each row in the dataset. hope this helps. Aloha, mel -- mel matsuokaHawaiian Image Productions Chief Exe

RE: How to open a http or https url, as if it was a file

2001-08-08 Thread Mel Matsuoka
he O.P. wants to "include" the content of external webpages in a CGI script, much like a standard SSI. So you couldn't just open() the URL as if its a local file. Aloha, mel -- mel matsuokaHawaiian Image Productions Chief Executive Alphageek (vox)1.80

Re: How to open a http or https url, as if it was a file

2001-08-08 Thread Mel Matsuoka
27;); or >open (FILE, 'https://www.myurl.com'); > >Do you know how I could do that ? Use the LWP::Simple module. Aloha, mel -- mel matsuokaHawaiian Image Productions Chief Executive Alphageek (vox)1.808.531.5474 [EMAIL PROTECTED] (f

Re: NOT: very funny...

2001-08-08 Thread Mel Matsuoka
ia" dweeb--but I actually like coding Perl better than my other "patients" to tell you the truth :) Aloha, mel -- mel matsuokaHawaiian Image Productions Chief Executive Alphageek (vox)1.808.531.5474 [EMAIL PROTECTED] (fax)1.808.526.4040

Re: NOT: very funny...

2001-08-08 Thread Mel Matsuoka
JD's words, you'd have to be in a really good mood to even bother answering a question like that. I wouldn't ever presume to authoritatively speak for Casey on this list, but I would think that even he would agree that while cordiality is one thing, "spoon-feeding" wi

Re: href in CGI

2001-08-06 Thread Mel Matsuoka
tag, ergo: print a( {-href => 'http://www.foo.bar'}, 'Text to link' ); HTH..Aloha, mel -- mel matsuokaHawaiian Image Productions Chief Executive Alphageek (vox)1.808.531.5474 [EMAIL PROTECTED] (fax)1.808.526.4040 -- To uns

Re: Displaying Graphics

2001-08-05 Thread Mel Matsuoka
have a closing TABLE tag, which would definitely cause the problem you describe. HTH...Aloha mel -- mel matsuokaHawaiian Image Productions Chief Executive Alphageek (vox)1.808.531.5474 [EMAIL PROTECTED] (fax)1.808.526.4040 -- To unsubscribe

Re: Displaying Graphics

2001-08-05 Thread Mel Matsuoka
ror log about it. Is there something special I have to do to get it to >work? What's this for?----^ Aloha, mel -- mel matsuokaHawaiian Image Productions Chief Executive Alphageek (vox)1.808.531.5474 [EMAIL PROTECTED]

Re: Creating Hypertext Links

2001-08-05 Thread Mel Matsuoka
rd CGI.pm module to create hrefs, but imho, the benefits of doing it that way aren't worth it, as far as readbility and maintenance are concerned. The documentaion for CGI.pm is at: http://stein.cshl.org/WWW/software/CGI/ HTH..Aloha, mel -- mel matsuokaHawaiian Im

Re: Variable Grief

2001-08-02 Thread Mel Matsuoka
At 11:03 AM 08/03/2001 +1000, Barrie Heck wrote: >Hi All > >Have brought in text from HTML textarea through POST method into perl as variable $FORM{message}. Want to add to the end of each line in the variable but cannot work out how to do it. Any clues? > What have you tried so far? -- To

Re: book for newbee

2001-07-26 Thread Mel Matsuoka
erienced Perl programmer. Check out Ovid's review at http://www.perlmonks.org/index.pl?node_id=21576&lastnode_id=23304 Start with Randal Schwartz's "Learning Perl" or Andrew Johnson's "Elements of Programming with Perl" (the latter is better if you dont have

Re: File notOpening.........why?

2001-07-25 Thread Mel Matsuoka
ple: my $mailids; $mailids = $query->param('mailid'); Or, to be more succinct: my $mailids = $query->param('mailid'); 3. Test your code before posting to the list. Your code has numerous *basic* syntax errors that you should have se

Re: File notOpening.........why?

2001-07-25 Thread Mel Matsuoka
to print the header for you. Since you've gone through the trouble of use-ing CGI.pm, you might as well use its functions instead of printing the headers out yourself. Aloha, mel -- mel matsuokaHawaiian Image Productions Chief Executive Alphageek (vox)1.8

RE: e-mailing HTML form results

2001-07-20 Thread Mel Matsuoka
At 07:57 AM 07/20/2001 -0400, Helen Dickey wrote: >Thank you so far. I now get >"(myfile).pl has too many errors." when I try my perl script. >Is there any debugging tool for perl scripts? perldoc perldebug Aloha, mel -- mel matsuokaHawaiian Imag

Re: error info...

2001-07-19 Thread Mel Matsuoka
nator. btw, try not to post responses in "jeopardy style" (aka top posting)...it makes quoting and followups very disjointed and hard to follow...not to mention a PITA to reformat :) Aloha, mel -- mel matsuoka Hawaiian Image Productions Chief Executive Alphage

Re: error info...

2001-07-19 Thread Mel Matsuoka
ns any whitespace after the terminator string as well. Make sure that your heredoc terminator is the ONLY thing on that line. HTH. Aloha mel -- mel matsuoka Hawaiian Image Productions Chief Executive Alphageek(vox)1.808.531.5474 [EMAIL PROTECTED]

Perl editors (WAS: Re: error info...)

2001-07-19 Thread Mel Matsuoka
like the "tree" view of subroutines it has. In Perl Builder, you have to call up a seperate popup window to get a list of subroutines) Aloha, mel -- mel matsuoka Hawaiian Image Productions Chief Executive Alphageek(vox)1.808.531.5474 [EMA

Re: error info...

2001-07-19 Thread Mel Matsuoka
d other strict-related problems. I can tell you one thing though, elseif is NOT elsif ;) Try it for yourself and see what you come up with. aloha, mel -- mel matsuoka Hawaiian Image Productions Chief Executive Alphageek(vox)1.808.531.5474 [EMAIL PROTECTED]

Re: error info...

2001-07-19 Thread Mel Matsuoka
uch as UltraEdit (http://www.ultraedit), which will make your coding life so much better. Notepad is good for writing hello world-level scripts, but in order to manage "real" programs and scripts, you need to have something more robust. Aloha, mel -- mel matsuoka Hawaiian I

Re: error info...

2001-07-19 Thread Mel Matsuoka
it, Netfirms supports everything you need to develop perl scripts. It sounds like you're doing something wrong on your side (most likely syntax errors in your perl code). Post the code which is giving you the problem...otherwise its next to impossible to give you specific advice. Aloha, me

Re: error info...

2001-07-19 Thread Mel Matsuoka
use VBScript, >and it, when you did an error, it at least told the line # >that i thinks the error is on? Use CGI::Carp qw/fatalsToBrowser/ -- mel matsuokaHawaiian Image Productions Chief Executive Alphageek (vox)1.808.531.5474 [EMAIL PROTECTED]

Re: Do I use fork() for this?

2001-07-19 Thread Mel Matsuoka
gt;problem, I've probably already written a column on it. :) ^ I typed in "Impressing hot chicks using obfuscated perl one-liners" and didn't get any results from your search engine. Will you be writing a WebTechniques column about this important topic in the nea

Re: unix perl to win NT perl

2001-07-18 Thread Mel Matsuoka
01 now...I can't believe his stuff is STILL as popular as it was back in 1996. -- mel matsuokaHawaiian Image Productions Chief Executive Alphageek (vox)1.808.531.5474 [EMAIL PROTECTED] (fax)1.808.526.4040 -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Apache and cgi-bin directory - Redhat 7.1

2001-07-16 Thread Mel Matsuoka
allow ExecCGI (for security reasons). This is covered very well in the Apache server docs/faq at http://httpd.apache.org/ HTH...Aloha, mel -- mel matsuokaHawaiian Image Productions Chief Executive Alphageek (vox)1.808.531.5474 [EMAIL PROTECTED]

Re: Nasty

2001-07-13 Thread Mel Matsuoka
that hackers would first have to know the names of the tables >> they were affecting and thus, things were secure. > >that sounds more like an excuse than an explanation. Let there be one mantra that ALL programmers must repeat to themselves over and over again until they go insane: &quo

Re: a problem with Image::Size

2001-07-13 Thread Mel Matsuoka
mpletely meaningless to your problem...that's an just error message from the *Web-server*, NOT perl. You need to run your script manually from the commandline with warnings and strict enabled (or using the aformentioned CGI::Carp module so you can see the errors from perl echo'ed to you

Re: Nasty

2001-07-13 Thread Mel Matsuoka
At 03:45 PM 07/13/2001 -0500, Camilo Gonzalez wrote: >I don't work with a lot of programmers. I hope to get into a situation where >I do. Is it fair to say the majority are *holes? A LOT of them are (just read c.l.p.m ;), but thier saving grace is that you can learn a LOT from them if you don't t

RE: Copy and past HTML into a perl script

2001-07-13 Thread Mel Matsuoka
th Activestate Perl 5.6.1 on windows2000 and Perl on my Mandrake Linux box. -- mel matsuoka Hawaiian Image Productions Chief Executive Alphageek(vox)1.808.531.5474 [EMAIL PROTECTED](fax)1.808.526.4040 -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: a problem with Image::Size

2001-07-12 Thread Mel Matsuoka
e strict' for every script you write. hth. aloha, mel ________ mel matsuoka Hawaiian Image Productions Chief Executive Alphageek(vox)1.808.531.5474 [EMAIL PROTECTED](fax)1.808.526.4040

Re: pop3 account

2001-07-11 Thread Mel Matsuoka
loha, mel ______ mel matsuokaHawaiian Image Productions Chief Executive Alphageek (vox)1.808.531.5474 [EMAIL PROTECTED] (fax)1.808.526.4040

Re: any perl clrscr() or cls equivalent?

2001-07-11 Thread Mel Matsuoka
m ('cls'); aloha, mel __________ mel matsuokaHawaiian Image Productions Chief Executive Alphageek (vox)1.808.531.5474 [EMAIL PROTECTED] (fax)1.808.526.4040

Re: Re-inventing wheels (WAS re: Required Fields Module)

2001-07-10 Thread Mel Matsuoka
lated issue where the original poster should have just been using CGI.pm. I think i'll go crawl back into my philosophical hole now :) mel matsuoka Hawaiian Image Productions Chief Executive Alphageek(vox)1.808.531.5474 [EMAIL PROTECTED](fax)1.808.526.4040

Re-inventing wheels (WAS re: Required Fields Module)

2001-07-10 Thread Mel Matsuoka
s, since I've been meaning to present this issue to c.l.p.m for years, yet never got around to it :P just another wannabe perl hacker on lunch break, mel mel matsuoka Hawaiian Image Productions Chief Executive Alphageek(vox)1.808.531.5474 [EMAIL PROTECTED](fax)1.808.526.4040

Re: The binary file as CGI output

2001-07-10 Thread Mel Matsuoka
ically streams binary data off the webserver root and allows the user to download it. The headers I set look like this (where $fs is the filesize of the data to be sent): Content-Type: application/octet-stream Accept-Ranges: bytes Content-Length: $fs Content-disposition: filename=downloaded.mp

RE: dropping off a few decimal points

2001-07-10 Thread Mel Matsuoka
t-in function to pull off the same results. Use sprintf: print sprintf "%.2f", $number; Aloha, mel __________ mel matsuokaHawaiian Image Productions Chief Executive Alphageek (vox)1.808.531.5474 [EMAIL PROTECTED] (fax)1.808.526.4040

Re: Encrypting data on the server

2001-06-26 Thread Mel Matsuoka
e the "script-kiddies" AREN'T trying. This is all the more amazing, considering that our webstore is based on Selena Sol's awful, Perl-4 based "Web Store" script :P (I'm rolling out a totally revamped and redesigned site, using PHP, so dont laugh at my site as it

RE: If I could get just one Perl Book what should it be?

2001-06-25 Thread Mel Matsuoka
cked out on buying a "User Friendly" comicstrip book on Amazon the other day for only $3.88! Aloha, mel ______ mel matsuokaHawaiian Image Productions Chief Executive Alphageek (vox)1.808.531.

Re: If I could get just one Perl Book what should it be?

2001-06-25 Thread Mel Matsuoka
o find out where the technical flaws are in this book from some of the more enlightened Perl reviewers. I also think the O'reilly Perl Cookbook is fabulous too (in the same vein as the Black Book). I know you only asked for one book, but I don't believe there is such a thing as "THE book&q

Re: Extra ?

2001-06-21 Thread Mel Matsuoka
xt > >and > >list assigned _to_ [a scalar] So your example would fit in the "list assignment _in_ scalar context" category...the keyword being "assignMENT", and not "assignED" aloha, mel ___

RE: Extra ?

2001-06-21 Thread Mel Matsuoka
and yes I use $q->endform; Please show the actual code you are using, otherwise its very difficult to help pinpoint your problem Aloha, mel __ mel matsuokaHawaiian Image Productions Chief Executive Alphageek

Re: Extra ?

2001-06-21 Thread Mel Matsuoka
At 04:53 AM 06/21/2001, Mel Matsuoka wrote: >> Check for a line something like >"print hidden(-name='.cgifields')" oops, i meant "print hidden(-name=>'.cgifields.')" what the hell am i doing awake at 4:30 in the morning? :P ______

Re: Extra ?

2001-06-21 Thread Mel Matsuoka
At 10:45 AM 06/21/2001 -0400, Moon, John wrote: >I keep seeing these "extra" hidden fields in my source ... > >Does anyone know where/what/why they are being generated ? > > > If youre using the CGI.pm module, theres most likely a subroutine or other part of your code that is explicitly printi

Re: Re: Running CGI's locally

2001-06-21 Thread Mel Matsuoka
e out why my win32 developed scripts bomb out on my unix boxen...when the problem was just that I forgot to change the shebang line to point to the unix perl path! Aloha, mel __ mel matsuokaHawaiian Image Productions Chi

Re: Slightly OT: Kenneth Copeland and regexps?

2001-06-21 Thread Mel Matsuoka
gt;}; I think this works better than any regexp could possibly accomplish! :) Aloha, mel ______ mel matsuokaHawaiian Image Productions Chief Executive Alphageek (vox)1.808.531.5474 [EMAIL PROTECTED] (fax)1.808.526.4040

Re: Slightly OT: Kenneth Copeland and regexps?

2001-06-19 Thread Mel Matsuoka
I wrote: > > $word .= 'o' x $starlength; of course i meant to say: $word .= '*' x $starlength; Food takes priority over proper perl syntax right now :) ________ mel matsuoka Hawaii

Slightly OT: Kenneth Copeland and regexps?

2001-06-19 Thread Mel Matsuoka
if ($badwords_hash{$word}) { $starlength = length($word) - 1; $word = substr($word,0,1); $word .= 'o' x $starlength; } print $word; } } I know this is inefficient and slow, t

Re: converting MS access DB to mysql

2001-06-19 Thread Mel Matsuoka
accessmysql.com/ Hope this helps! Aloha, mel ______ mel matsuokaHawaiian Image Productions Chief Executive Alphageek (vox)1.808.531.5474 [EMAIL PROTECTED] (fax)1.808.526.4040

Re: database

2001-06-18 Thread Mel Matsuoka
DBC driver. Spend some time reading through the official DBI pages at http://dbi.perl.org/ . All the specifics you need to know are there. HTH...Aloha! __ mel matsuokaHawaiian Image Productions Chie

Re: Telnet

2001-06-14 Thread Mel Matsuoka
At 02:38 PM 06/14/2001 -0400, Brett W. McCoy wrote: >On Thu, 14 Jun 2001, Mel Matsuoka wrote: > >> IMO, telnet *should* be considered "defunct", except when using it for >> debugging and diagnostic purposes (i.e. telnetting directly to service >> ports). If you (

Re: Telnet

2001-06-14 Thread Mel Matsuoka
gh time that you should, for security's sake. Aloha, mel ______ mel matsuokaHawaiian Image Productions Chief Executive Alphageek (vox)1.808.531.5474 [EMAIL PROTECTED] (fax)1.808.526.4040