Re: Write permissions and other rights

2002-04-22 Thread drieux
On Monday, April 22, 2002, at 10:46 , David Kirol wrote: > Thanks Drieux I didn't want to take the time to write what you did, but I' > m > glad to see it on the list. > David (aka sometimeAnotTooBrightNewbie) Caveat Emptor - What Do I Know? All I know is what I have figured out - and as I say,

RE: Write permissions and other rights

2002-04-22 Thread David Kirol
Thanks Drieux I didn't want to take the time to write what you did, but I'm glad to see it on the list. David (aka sometimeAnotTooBrightNewbie) -Original Message- From: drieux [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 23, 2002 12:59 AM To: cgi Subject: Re: Write permissions and othe

Re: Write permissions and other rights

2002-04-22 Thread drieux
On Sunday, April 21, 2002, at 07:42 , Todd Wade wrote: > First of all, this has nothing to do with perl, but given that I wrote my first cgi tested it with perl first.cgi and got the bugs out, ftp'd it up and then LEARNED the hard way that it had to be 755 - we all start out some

Re: Write permissions and other rights

2002-04-22 Thread drieux
On Saturday, April 20, 2002, at 07:22 , Octavian Rasnita wrote: much of this depends upon the policy of the people running the core server... If they allow user's to have their own cgi space then that is ok. I have a small test set that i run independent of the main ones - so my limited experien

Re: Write permissions and other rights

2002-04-22 Thread Octavian Rasnita
Sorry but is this list talking only about Perl code? I thought it is for all CGI issues not only about the script code. and I thought it is a list for beginners. Thank you for help, but what you recommend, I already know. Teddy, [EMAIL PROTECTED] - Original Message - From: "Todd W

Re: FILE Transfer (FTP) using PERL

2002-04-22 Thread fliptop
Todd Wade wrote: > "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote in message > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > This will dump the file back to the user inside the browser window. Putting > the data in a file or attaching it to an email is left as an exercise to the > poster. wh

Re: FILE Transfer (FTP) using PERL

2002-04-22 Thread Todd Wade
"[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > > Input the Filename You Wish To Transfer > > > read: perldoc -M CGI Uploading via a web browser is via http. The file is included with the request to the server. FTP has nothing to d

Re: FILE Transfer (FTP) using PERL

2002-04-22 Thread fliptop
fliptop wrote: > [EMAIL PROTECTED] wrote: > > $msg->attach( > Type => 'image/jpeg', # or whatever > FH => $cgi->upload('Filename') > ); i didn't test this, but you could probably do it instead: $msg->attach( Type => $cgi->uploadInfo('Filename')->{'Content-Type'}, FH => $cgi->up

Re: FILE Transfer (FTP) using PERL

2002-04-22 Thread fliptop
[EMAIL PROTECTED] wrote: > I was wondering if a HTML form, and PERL, can be used so that visitors > to my web site can upload pictural files (ala FTP) to me? if you're using cgi.pm, you don't need to use ftp: use MIME::Lite; my %email = ( From => 'whomever', To => '[EMAIL

FILE Transfer (FTP) using PERL

2002-04-22 Thread [EMAIL PROTECTED]
I was wondering if a HTML form, and PERL, can be used so that visitors to my web site can upload pictural files (ala FTP) to me? I'm asking because I've "discovered" the following HTML tags -- Input the Filename You Wish To Transfer Do you know if PERL can redirect the file either to my e

Re: Permanently add INC directory?

2002-04-22 Thread drieux
On Sunday, April 21, 2002, at 08:28 , Dan Kogai wrote: [..] > > More elegant solution; > > use lib qw(/your/directory); This is my preferred strategy second ONLY to the idea of using say h2xs - and creating the obligatory full on perl module that will be 'installable' - and hence get on with in

Re: proxy server

2002-04-22 Thread Todd Wade
"Conan Chai" <[EMAIL PROTECTED]> wrote in message 003301c1ea03$29edb410$0164a8c0@user1">news:003301c1ea03$29edb410$0164a8c0@user1... hi, >how do i read in the request from a browser? Go get the Perl Cookbook. Theres a whole section on being a TCP server. Its a little too complicated to discuss

Re: A super huge form.

2002-04-22 Thread Todd Wade
"Connie Chan" <[EMAIL PROTECTED]> wrote in message 01c1e869$61296f00$de7566da@omega">news:01c1e869$61296f00$de7566da@omega... >Anyway, I don't want to use cgi.pm. The first time a user agent uses ``;'' instead of ``&'' to seperate the name=value pairs youll wish you did trwww -- To

Re: Run process in background

2002-04-22 Thread drieux
On Monday, April 22, 2002, at 12:27 , Alex Read wrote: > Food for thought indeed! Fortunately the number of options the user has > is small and so I can write my script like so; > > system "Myscript option1" if ("$Form_input" eq "Nice_things1"); > system "Myscript option2" if ("$Form_input" eq

Re: popup_menu default

2002-04-22 Thread Todd Wade
"Todd Wade" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... - Original Message - From: "Jack Daly" <[EMAIL PROTECTED]> To: "Todd Wade" <[EMAIL PROTECTED]> Sent: Sunday, April 21, 2002 11:51 PM Subject: Re: popup_menu default > On Sun, 21 Apr 2002, Todd

proxy server

2002-04-22 Thread Conan Chai
hi, how do i read in the request from a browser? the browser is set to point to my proxy server. i have tried the following codes while(sysread($client,$request,1024) > 0) { #do something } and $bytes = sysread($client,$request,1024); if($bytes > 0) { #do something } obviously the br

Re: Some Newbie Questions :-)

2002-04-22 Thread John Brooking
(Sorry for the duplicate, Jamie, forgot to forward to the list!) --- Jamie <[EMAIL PROTECTED]> wrote: > ... > 2) Should i use text files for my data or dive > straight into something > like MySQL? I'll propably need the SQL stuff later > on, but is there > any general rule as regards to size/ num

Re: A super huge form.

2002-04-22 Thread John Brooking
Connie, >From a technical point of view, I think that if you submit via "post" you are not limited in size. If you submit via "get", it adds it all to the URL in the form of "http://yourdomain/yourscript.pl?param1=foo¶m2=bar"; etc. and you are limited to about ~2K total length (depending on the b

Re: Run process in background

2002-04-22 Thread Alex Read
Food for thought indeed! Fortunately the number of options the user has is small and so I can write my script like so; system "Myscript option1" if ("$Form_input" eq "Nice_things1"); system "Myscript option2" if ("$Form_input" eq "Nice_things2"); etc ... Also this form is being used more as a "