Re: [Boston.pm] Re: Uploading a picture with perl

2004-08-03 Thread John Saylor
hi ( 04.08.02 19:32 -0400 ) Alex Brelsfoard: But I am a bit curious to know if there is a way to do this without using CGI.pm. sure, mod_perl [much faster, lighter]. the interface is a bit better than CGI.pm, but not a whole lot. i just think it's a tricky thing to be doing anyway [uploading

Re: [Boston.pm] Re: Uploading a picture with perl

2004-08-03 Thread Alex Brelsfoard
hi ( 04.08.02 19:32 -0400 ) Alex Brelsfoard: But I am a bit curious to know if there is a way to do this without using CGI.pm. sure, mod_perl [much faster, lighter]. the interface is a bit better than CGI.pm, but not a whole lot. i just think it's a tricky thing to be doing anyway

Re: [Boston.pm] Re: Uploading a picture with perl

2004-08-03 Thread Richard Morse
On 3 Aug 2004, at 9:25 AM, Alex Brelsfoard wrote: hi ( 04.08.02 19:32 -0400 ) Alex Brelsfoard: But I am a bit curious to know if there is a way to do this without using CGI.pm. sure, mod_perl [much faster, lighter]. the interface is a bit better than CGI.pm, but not a whole lot. i just think it's

Re: [Boston.pm] Re: Uploading a picture with perl

2004-08-03 Thread Peter Wood
# Already did statement outside this function. my $picture = $query-upload($file); Perhaps something got cut out here - where did you get the $file variable from? Did you use a CGI::filefield form to get the file name? I'm assuming you have already read this, but just in case,

Re: [Boston.pm] Re: Uploading a picture with perl

2004-08-03 Thread Sean Quinlan
On Mon, 2004-08-02 at 19:32, Alex Brelsfoard wrote: Ron, Sean, Thank you both. I will give it a try. Sean, no worries, I have a two-layered security system in place, and plenty of well-placed warnings. I'm perfectly happy using CGI.pm (and am currently on this project). But I am a

Re: [Boston.pm] Re: Uploading a picture with perl

2004-08-03 Thread Alex Brelsfoard
Thanks Richard, everyone. I tried your (Richard) code also. It bombs on No File Specified. Looks like somehow it can't grab ahold of the file I'm trying to upload. There must be something in the rest of my cod that is interfering with all this. But I really can't imagine what. The rest

Re: [Boston.pm] Re: Uploading a picture with perl

2004-08-03 Thread Alex Brelsfoard
Upon further testing I verified that the statement my $picture = $query-upload($file); is indeed returning undefined. What would cause that? I do know that $file DOES contain valid information (the correct name of the field holding the file to be uploaded). --Alex Thanks Richard,

Re: [Boston.pm] Dan and the Pie

2004-08-03 Thread Dan Sugalski
At 11:00 AM -0400 8/3/04, Uri Guttman wrote: DS == Dan Sugalski [EMAIL PROTECTED] writes: DS I *did*. You put a lot of whipped cream on those things, and it DS doesn't take much to coat a contact lens. :-P DS I had a professional to consult beforehand. I really shoulda asked DS what the

Re: [Boston.pm] Re: Uploading a picture with perl

2004-08-03 Thread Ron Newman
Upon further testing I verified that the statement my $picture = $query-upload($file); is indeed returning undefined. What would cause that? Show us the entire HTML FORM that contains the file upload field. ___ Boston-pm mailing list [EMAIL PROTECTED]

Re: [Boston.pm] Re: Uploading a picture with perl

2004-08-03 Thread Ronald J Kimball
I'm not sure why your code isn't working. It's a bit hard to debug, because we're just seeing bits and pieces. Anyway, here's a simple example that does work: #!/usr/local/bin/perl -w use strict; use CGI; my $cgi = new CGI; print $cgi-header(); print EndOfHTML; html headtitleFile Upload

Re: [Boston.pm] Re: Uploading a picture with perl

2004-08-03 Thread Alex Brelsfoard
I am not at all certain of what I did differently. I was playing around with all of your suggestions. And one of my attempts ACTUALLY WORKED! So thank you all very much for your help. I have tested it several times now. If you are still curious and want to see what I've got (code), I'll be

Re: [Boston.pm] Dan and the Pie

2004-08-03 Thread Steven W. Orr
On Tuesday, Aug 3rd 2004 at 08:39 -0400, quoth Dan Sugalski: =At 12:08 AM -0400 8/3/04, Uri Guttman wrote: = DS == Dan Sugalski [EMAIL PROTECTED] writes: = =and yours truly purchased the pies and the beer (with funds from the = tpf =auction which had a group bid of $520 for us to also

Re: [Boston.pm] Dan and the Pie

2004-08-03 Thread Chris Devers
On Tue, 3 Aug 2004, Steven W. Orr wrote: Probably the funniest of all pies is the kiwi pie. Of course, if Dan had been an adorable KDE hacker, it would have had to be a QT Pie. -- Chris Devers you may groan now ___ Boston-pm mailing list [EMAIL

[Boston.pm] CGI::Carp and mod_perl

2004-08-03 Thread Ron Newman
If I run this under mod_perl: #!/usr/bin/perl use CGI::Carp; die Death by chocolate\n; the Apache error log reads: [Tue Aug 3 17:54:00 2004] [error] [Tue Aug 3 17:54:00 2004] null: Death by chocolate If I run it without mod_perl, it prints out the name of my script instead of null. Why