Google Answers Logo
View Question
 
Q: Need Step by Step Instruction for Setting up a CGI Script ( Answered 5 out of 5 stars,   2 Comments )
Question  
Subject: Need Step by Step Instruction for Setting up a CGI Script
Category: Computers > Programming
Asked by: socr2-ga
List Price: $20.00
Posted: 07 Mar 2003 17:13 PST
Expires: 06 Apr 2003 18:13 PDT
Question ID: 173322
I need a cgi script and the HTML for a GUI form which will allow users
to securely upload files via FTP to a folder on my hosted site.  I
believe the Web hosting is Win2000/NT.  There is a cgi bin.  I need
the passwords for the FTP sites to be hidden from users and hackers. 
I run a service for restoring corrupt office files and forgotten
passwords.  I need step by step instructions for how to impliment the
script.  Thanks.

Clarification of Question by socr2-ga on 07 Mar 2003 17:21 PST
I would also need an E-mail automatically sent to me upon a file upload.

Thanks

Request for Question Clarification by studboy-ga on 07 Mar 2003 18:33 PST
Hi

I did a search for "cgi script to upload files" and found a bunch
of step-by-step instructions--for example:

http://www.muquit.com/muquit/software/upload_pl/upload_pl.html
http://www.freebsddiary.org/fileupload.php
http://www.perlservices.net/en/programs/psupload/index.shtml


To email, simply append a sendmail script or just use the sendmail command
directly.

Let me know if this is what you're looking for.  Thanks.

Clarification of Question by socr2-ga on 07 Mar 2003 19:35 PST
Hi,

The last link might work.  I will Contact my hosting company to ask
their opinion.  Thanks.  I will get back to you.  The issue is, I'm
not sure I'm allowed to to a "CHMOD" the directories to 777 and the
cgi files to 755.  I don't even know what CHMOD is.  I'll clarify a
little more a little later.  Also I need a description of how to put
in the sendmail command.  Finally, will the Perl scripts run if Perl
is not loaded on the hosting company web server?

Clarification of Question by socr2-ga on 07 Mar 2003 20:20 PST
Can you use chmod if the Web Hosting Server is NT?
Answer  
Subject: Re: Need Step by Step Instruction for Setting up a CGI Script
Answered By: larre-ga on 08 Mar 2003 16:49 PST
Rated:5 out of 5 stars
 
Thanks for asking!

The following Windows NT scripts meet your criteria. Installation
instructions will vary individually by script, however all the
suggestions below DO include complete installation instructions.
Professional installation is generally available for fee-based
scripts. In addition, I've provided a couple of lists of CGI script
installation specialists.

The class/category of script you require would be termed File
Management. You may also be able to successfully use a simpler File
Uploader, depending upon features.


Take This!
********** 

"A Powerful file upload/retrieve/delete utility that uses cgi-lib.
TAKE THIS! let's site visitors upload files via their web browser, to
a pre-defined directory, using a predefined login/password. Each user
can have their own password-protected upload directory. Users can also
retrieve and delete files in their directory." See all the features
at:

Take This! Overview
http://www.onlinearts.net/scripts/PERL/TakeThis/for_NT/oa/index.htm

Take This! Manual
http://www.onlinearts.net/scripts/PERL/TakeThis/for_NT/oa/manual.htm

The Overview Page include indication that use of this script may
require a fee, however, the parent website contains the following
disclaimer:

"Freeware - In the course of its business, Online Arts has developed a
number of cgi scripts and other components for use in developing
interactive websites. We provide this software to the Internet
community as "freeware". This means the software is free to use and
free of technical support.

Use the software as you wish. Modify the programs as you wish. Don't
redistribute or sell the scripts to others. Instead, send them this
link and invite them explore our freeware archive."

Online Arts - Freeware
http://www.onlinearts.net/freeware.php

I would suggest you contact Online Arts to verify the fee status of
the script.


PS Upload
*********

According to PerlServices.net:

" PSUpload has been around for years! It was originally written by
Mark Knickelbain and has grown in popularity steadily. PSUpload is a
quick and easy to implement utility for permitting the upload of files
(ASCII & Binary) to your server from your web site.

In November of 2000, PSUpload was totally re-written by Jim Melanson.
PSUpload now allows users to specify:

File types to permit upload of...
File types to prevent upload type of....
Maximum size of files...

Additionally, we have now released the long awaited version that runs
on an NT server!"

The script is free. The program documentation includes a NT note near
the bottom of the page. The script package itself also includes more
extensive NT documentation.

LARRE-GA'S WINDOWS NT INSTALLATION NOTE:
****************************************

CHMOD is not utilized with NT servers. Although most tutorials on
installing scripts tell you to change the permissions, they neglect to
mention that you don't have to do this on Windows systems. Simply skip
this step


PerlServices.net - PS Upload Documentation
http://www.perlservices.net/en/programs/psupload/index.shtml 

Additional Note -- I've downloaded and examined the PSUpload.zip file.
The file nt_upload.cgi contains NT specific install instructions.


CGI FTP
*******

From Koshka.net: "CGI FTP script runs from the browser and will push a
files off of your server to the remote server and get files from
remote server to your server. User enters their host, username,
password, and a destination directory and the files is transferred at
ethernet speeds even if they are only using a dialup account."  This
appears to be a simple FTP substitute. You may find it adequate. It's
certainly easy to use. The originator claims NT compatibility. Cost:
$30.

CGI FTP
http://www.koshka.net/cgiftp.html


SPAds (C) FileUploader and FileUploader Pro
*******************************************

FileUploader "Works on Unix and Windows, with Netscape or Explorer!
The program has options for limiting file sizes and types, uploaded
file types can be set for All files, All files except executables, or
just image files!" Cost: $9.95 - installation available for $49.95

File Uploader Pro (C) "This is our Professional Version of our popular
File Uploader, with over (29,000 downloads) and still going strong!
File Uploader Pro Has many features and options that allow you to have
total control over the files being uploaded to your site! Cost $149.95
- professional installation $49.95

SPAds FileUploader
http://www.spads.com/fileuploader.html

SPAds FileUploader Pro
http://www.spads.com/uploaderpro.html


Upload Plus
***********

"What is Upload Plus? Upload Plus is an extension of Upload Lite.
Successfully tested on literally hundreds of servers, both UNIX and
WINDOWS, Upload Plus allows your web site visitors to upload files to
any directory on your server. You can set the file types you accept,
the maximum size of any one file, have the user redirected to a page
of choice after a successful upload, be notified of new uploads and
more."  Cost: $20

PerlScriptsJavaScripts.com - Upload Plus
http://www.perlscriptsjavascripts.com/perl/upload_plus/index.html


FileMan
*******

Gossamer Threads all-platform file manager. Multi-user version, $150.
A free, single-user version, with an auto-installer, is also
available.

FileMan
http://www.gossamer-threads.com/scripts/fileman/


Genie
*****

This script provides minimal feature description, ("Upload, download,
create, edit, and encrypt/decypt files anywhere in your server.
Includes easy changing of password and improved code for editing
files.") it's not been officially tested on NT, however it installed
easily (on NT) following the instructions given in the script. I did
not test functionality beyond basic execution. You'll want the
genie.zip version of the file. Free.

Genie - Download page
http://icubirdem.hypermart.net/download/genie.htm


eTools Document Manager
***********************

Although this is not a script only solution, the Document Manager
provides the option of additional security features though secure
access on a remote server. The remotely hosted application is $9.95
per month. The installed version (your computer) is $39.95/one time
fee. For detail information, select the "View Online User Guide"
button.

eTools Document Manager
http://www.omnistaretools.com/product/document.htm


Finally, if you wish to venture into .ASP script
programming/installation (horse of a different color, I've included a
link to comparisons under Tutorials, below), you'll find the following
scripts available. All are Win NT server compatible.

Javascripts.com ASP File Manipulation
http://www.hotscripts.com/ASP/Scripts_and_Components/File_Manipulation/Upload_Systems/

 

NT Script Installation Tutorials on the Web
*******************************************

Using the Blat Program to Send E-mails
http://www.dynamic.net/support/nt/blat.html

ASP Script Installation Tutorials for Beginners
http://www.macronimous.com/resources/tutorials/ASP_installation_tutorial.asp

Unix or NT? Perl or ASP?
http://stylusinc.com/servers/scripts/asp_cgi.htm


CGI Script Installers/Programmers
*********************************

CGI Resource - Programmers
http://cgi.resourceindex.com/Programmers/

CodeBox CGI Resesources (bottom righthand corner of page)
http://www.codebox.8m.com/cgi.htm



Google Search Terms:
CGI script installation "Windows NT" tutorial OR instructions OR
service
CGI script NT "file uploader" 
CGI script NT "website file manager" OR "file management"
NT script installation tutorial OR tutorials OR tips

I hope this information provides the background you wanted, in order
to feel comfortable with script installation, either on your own, or
with the help of a CGI installation expert. Should you have any
questions about the material or links I have gathered, please, feel
free to ask.

larre-ga
socr2-ga rated this answer:5 out of 5 stars and gave an additional tip of: $2.00
Encyclopedic and very clear.  Good job.

Comments  
Subject: Re: Need Step by Step Instruction for Setting up a CGI Script
From: jdog-ga on 07 Mar 2003 19:45 PST
 
chmod is a unix utility to change the permissions of files
Subject: Re: Need Step by Step Instruction for Setting up a CGI Script
From: highroute-ga on 08 Mar 2003 06:52 PST
 
CHMOD does not apply on Windows servers.

Important Disclaimer: Answers and comments provided on Google Answers are general information, and are not intended to substitute for informed professional medical, psychiatric, psychological, tax, legal, investment, accounting, or other professional advice. Google does not endorse, and expressly disclaims liability for any product, manufacturer, distributor, service or service provider mentioned or any opinion expressed in answers or comments. Please read carefully the Google Answers Terms of Service.

If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you.
Search Google Answers for
Google Answers  


Google Home - Answers FAQ - Terms of Service - Privacy Policy