Re: File Upload Using CGI

2004-12-02 Thread Manas Kulkarni
OK Guys I tried using the upload method of CGI. Here is what I did: my $upload = CGI::Upload->new; *Do I need to associate the upload variable with the CGI object in some way which I am creating in the cgi script to accept the other parameters from the html form ?

Re: File Upload Using CGI

2004-12-01 Thread JupiterHost.Net
Sorry? How is foo( -name => $cgi->param("name"), -email => $cgi->param('email')); better than foo( -name => $query{name}, -email => $query{email}); ? Hey Jenda, I was referring to one of the questions about why people still want the hash like %IN and not paying much attention to th

Re: File Upload Using CGI

2004-12-01 Thread Jenda Krynicky
From: "JupiterHost.Net" <[EMAIL PROTECTED]> > Charles K. Clarkson wrote: > > > Manas Kulkarni <[EMAIL PROTECTED]> wrote: > > > > : %in = $query->Vars; # get the form data into a hash > > : > > > >Arrgh! I have never understood the desire to immediately > > place all parameters in a hash. T

Re: File Upload Using CGI

2004-12-01 Thread JupiterHost.Net
Manas Kulkarni wrote: OK. Advice taken. I have a moustache and I definitely don't wear diapers ;) Haha good one, lol ;) Thanks a lot, Manas. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: File Upload Using CGI

2004-12-01 Thread Manas Kulkarni
OK. Advice taken. I have a moustache and I definitely don't wear diapers ;) Thanks a lot, Manas. Quoting "JupiterHost.Net" <[EMAIL PROTECTED]>: > > > Charles K. Clarkson wrote: > > > Manas Kulkarni <[EMAIL PROTECTED]> wrote: > > > > : %in = $query->Vars; # get the form data into a hash > >

Re: File Upload Using CGI

2004-12-01 Thread JupiterHost.Net
Charles K. Clarkson wrote: Manas Kulkarni <[EMAIL PROTECTED]> wrote: : %in = $query->Vars; # get the form data into a hash : : foreach $key(keys %in) { : if($key eq 'sequences') { : $file_data = $in{$key}; : } : } Arrgh! I have never understood the desire to immediately place all para

RE: File Upload Using CGI

2004-12-01 Thread Charles K. Clarkson
Manas Kulkarni <[EMAIL PROTECTED]> wrote: : %in = $query->Vars; # get the form data into a hash : : foreach $key(keys %in) { : if($key eq 'sequences') { : $file_data = $in{$key}; : } : } Arrgh! I have never understood the desire to immediately place all parameters in a hash. This

Re: File Upload Using CGI

2004-12-01 Thread Jonathan Paton
Dear Manas, Use the CGI module, which provides a upload() method. In fact, I googled about for a tutorial that didn't use perl 4's cgi-lib module. Read: http://www.sitepoint.com/article/uploading-files-cgi-perl Jonathan Paton -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional comman

Re: file upload with Perl

2004-09-22 Thread Wiggins d Anconia
> > > I have few questions regarding file uplad: > > 1) I am try do next tutorial: http://www.redantigua.com/upload.html > > but what is "use lib qw(/home/redanti/perl);" here: > http://www.redantigua.com/UploadApp.txt > > perldoc lib C is a pragma (similar to a module, but affects the perl

Re: [ADMIN] Re: File upload script

2003-11-18 Thread Todd W.
"Casey West" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > Casey West > > -- > f u cn rd ths, u cn gt a gd jb n cmptr prgmmng. > Where? =0) Todd W. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: File upload script

2003-11-18 Thread Dan Muey
> I'm trying to allow users to upload their own webpages. I > have both binary and text format. Although, its probably ok > to upload the webpages in binary mode and it would bother the > webserver. > If it's browser based uploads CGI can help you. Otherwise you may be interested in Net::FTP.

[ADMIN] Re: File upload script

2003-11-17 Thread Casey West
It was Monday, November 17, 2003 when Tore Aursand took the soap box, saying: : On Mon, 17 Nov 2003 01:08:46 -0800, perl wrote: : > In any case, I'm wondering if use CGI is the package to use [...] : : Why don't you bother finding out? 'perldoc CGI'. Search for 'upload'. This isn't a proper res

Re: File upload script

2003-11-17 Thread Tore Aursand
On Mon, 17 Nov 2003 01:08:46 -0800, perl wrote: > In any case, I'm wondering if use CGI is the package to use [...] Why don't you bother finding out? 'perldoc CGI'. Search for 'upload'. -- Tore Aursand <[EMAIL PROTECTED]> -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands

Re: File upload script

2003-11-17 Thread perl
I'm trying to allow users to upload their own webpages. I have both binary and text format. Although, its probably ok to upload the webpages in binary mode and it would bother the webserver. In any case, I'm wondering if use CGI is the package to use and if there is a cpan module that someone can

Re: File upload script

2003-11-16 Thread Daniel Staal
--As off Sunday, November 16, 2003 5:17 PM -0800, [EMAIL PROTECTED] is alleged to have said: Can someone point the way to some file upload script for webserver on unix/linux? --As for the rest, it is mine. Single file, batch, automated, manual, FTP, RCP, email, SCP, CVS, SFTP, remote, local, we

RE: file upload to MySql

2002-09-21 Thread John Almberg
You can do the upload with a form. Read any HTML reference and check out the tag. The web server will store the uploaded file as a temporary file. Your form handler will have to store it someplace permanent. This is pretty simple using the CGI module. Check out the CGI module documentation for co

Re: file upload to MySql ??

2002-09-21 Thread Mariusz
db) to my visitors... how can I accomplish that? do I have to upload their file first to the host and then to my db? thanks M - Original Message - From: "Priss" <[EMAIL PROTECTED]> To: "perl" <[EMAIL PROTECTED]> Sent: Saturday, September 21, 2002 3:02 AM Subject:

Re: file upload to MySql

2002-09-21 Thread Priss
Sorry, a bit messy... use DBI; $dbh = DBI->connect("DBI:mysql:database=mydatabase;host=localhost", "user", "password", {'RaiseError' => 1}); $sth = $dbh->prepare("LOAD DATA INFILE '/home/me/file' INTO TABLE mytable FIELDS TERMINATED BY '|'"); $sth->execute(); Priss --- Priss <[EMAIL PROTECTED

Re: file upload to MySql

2002-09-21 Thread Priss
You mean something like this? use DBI; $dbh = DBI->connect("DBI:mysql:database=mydatabase;host=localhost", "user", "password", {'RaiseError' => 1}); $sth = $dbh->prepare("LOAD DATA INFILE '/home/me/file' INTO TABLE mytable FIELDS TERMINATE D BY '|'"); $sth->execute(); Priss --- Mariusz <[EMA

Re: FIle upload

2002-05-20 Thread Chris Ball
> "arran" == arran ubels writes: arran> I cant get a sucessfull file upload in ActivePerl i have arran> tried many ways,,, can someone send me a sucessfull example? First up, I really hate your sig. ;-) Second, use CGI::Upload from the CPAN. It has example uses in its own documen

RE: FIle upload

2002-05-20 Thread John Edwards
agrh. sig from hell... Post some example code. What platform are you running on? What webserver? Have you got any error messages? How about the server logs? Is there anything relevant there? Are you using the cgi.pm module? John -Original Message- From: Arran [mailto:[EMAIL PROTECTE