All,
I am a total n00b to perl and have decided to write my own file upload
script for a task I have to do. It is my intention to use CGI to accomplish
to allow users to upload a file through a webpage. I do not quite understand
the process, and thought it would be similar to the php function cop
r/bin/perl -w
# perlUpload.cgi by John Pretti
# Comments/Questions: john[at]web-connected.com
# Last modified 04/22/04
### Load Needed Perl Modules ##
use strict;
# Make HTML/FORMS/UPLOADING easy to deal with
use CGI;
# Report errors in the browser
use CGI::Carp 'fatalsToBrowser'
What are some of the books you all recommend for learning perl? I have
several perl books and none of them make any sense. Any input is
appreciated.
Thanks,
John
All,
I have been viewing the documentation for CGI.pm in hopes to use the
radio_group function. According to the docs my code appears to be correct.
Here is a sample and the error, can someone please help? I am sure this is a
simple fix. Note - I am an absolute perl n00b with no programming
exper
but I still am
having trouble understanding the logic and what the best way to do it would
be. Any help would be greatly appreciated. The code that I have is listed
below:
#!/usr/bin/perl -w
# perlPromote.cgi by John Pretti
# Comments/Questions john[at]web-connected.com
# Last modified 05/17/04
#
All,
I have developed a CGI that will take information from a CGI based form and
SCP a specific file to a remote server. I am having some troubles and I
think I need to escape something. Anyone have any ideas? Snippet of code is
as follows:
# SCP commands
my $scp_cmd = "/usr/bin/scp";
my $scp_o
-Original Message-
From: Wiggins d Anconia [mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 26, 2004 2:09 PM
To: John Pretti; [EMAIL PROTECTED]
Subject: Re: SCP help
>
> All,
>
> I have developed a CGI that will take information from a CGI based
form and
> SCP a spe
All,
I have created a CGI promotion script that allows users to push files from
one server to another. By nature I know you can only select one radio
button, but how can I send an error to the user if they accidentally press
submit without selecting a radio button?
Thanks in advance,
John
-Original Message-
From: aditi gupta [mailto:[EMAIL PROTECTED]
Sent: Saturday, June 05, 2004 10:34 AM
To: [EMAIL PROTECTED]
Subject: vi editor
hi,
vi is used only in unix and linux.which editor can be used in windows
and is better than notepad.
thanx,
aditi
Yahoo! India Matrimony
Can someone point me in the right direction of converting the following
script to use an html template?
#!/usr/bin/perl -w
# perlUpload.cgi by John Pretti
# Comments/Questions john[at]web-connected.com
# Last modified 05/03/04
# Load needed Perl modules
use strict;
use diagnostics;
use CGI
Hi all,
I have written an upload script using CGI.pm and it works perfect however it
looks bland. I would like ot understand how to make it look a lot nicer,
either continuing down the CGI.pm path or using some other method. Any
ideas?
TIA,
John
-Original Message-
From: Wiggins d Anconia [mailto:[EMAIL PROTECTED]
Sent: Monday, June 28, 2004 1:46 PM
To: John Pretti; [EMAIL PROTECTED]
Subject: Re: CGI.pm help
>
> Hi all,
>
> I have written an upload script using CGI.pm and it works perfect
however it
> looks
-Original Message-
From: JupiterHost.Net [mailto:[EMAIL PROTECTED]
Sent: Monday, June 28, 2004 2:17 PM
To: John Pretti
Cc: 'Wiggins d Anconia'; [EMAIL PROTECTED]
Subject: Re: CGI.pm help
>>Hi all,
>>
>>I have written an upload script using CGI.pm and it w
Hi all,
What is the best way to validate a form element? I am using the following
code to generate a set of radio buttons; how can I ensure that one of the
buttons is checked before processing the rest of the script?
print $q->start_multipart_form,
$q->p("Please select a direc
-Original Message-
From: JupiterHost.Net [mailto:[EMAIL PROTECTED]
Sent: Tuesday, July 06, 2004 3:17 PM
To: John Pretti
Cc: [EMAIL PROTECTED]
Subject: Re: Form Validation
John Pretti wrote:
> Hi all,
Hello,
> What is the best way to validate a form element? I am using the fol
-Original Message-
From: Gunnar Hjalmarsson [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 07, 2004 11:47 AM
To: [EMAIL PROTECTED]
Subject: Re: Form Validation
John Pretti wrote:
> OK now I am really lost. Here is what I am not following, the first
> time the form is run it wil
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Monday, July 12, 2004 3:37 PM
To: [EMAIL PROTECTED]
Subject: Clearing up Google history
How do I clear up my "google history" (IE history can be cleared via Tools,
Options).
That is, from any browser, when a
Good morning all,
I have written a script that will promote a file from one server to another
server. I am having some troubles trying to get the script to read my values
from my form element. Basically a user will pick either a production server
or a certification server and then do a SCP base
-Original Message-
From: Tim Musson [mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 31, 2004 1:53 PM
To: [EMAIL PROTECTED]
Subject: How to get config file via http
Hey all, I want to grab a config file from a web server. Basically I
need to pull a ServerList.csv from a web server so I
-Original Message-
From: Murphy, Ged (Bolton) [mailto:[EMAIL PROTECTED]
Sent: Wednesday, October 20, 2004 8:15 AM
To: '[EMAIL PROTECTED]'
Subject: executing 1 liners from cmd prompt
Hi all,
How do you execute 1 liners from the windows command prompt similar to
perl -e 'print "test\n"
-Original Message-
From: Gunnar Hjalmarsson [mailto:[EMAIL PROTECTED]
Sent: Wednesday, October 20, 2004 8:18 AM
To: [EMAIL PROTECTED]
Subject: Re: executing 1 liners from cmd prompt
Ged Murphy wrote:
> How do you execute 1 liners from the windows command prompt similar to
> perl -e 'p
- Original Message -
From: "Michael David" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, November 25, 2004 10:41 PM
Subject: A force switch with MCPAN install
Hello,
I am trying to install the DBD::mysql package, but I am having some issues
with the make test and make insta
add a progress bar
indicator to the script that will display status on the web page until the
file sync complete. Can anyone shed some light? I have reviewed
CGI:ProgressBar, but have had no success in implementing. Code is attached
below.
#!/usr/bin/perl -w
# perlPromote.cgi by John Pretti
23 matches
Mail list logo