Documentation Superfetch
News
CGI Scripts
Become A Member
Contact
Us
Support
Download
Area
Documentation
SUPERFETCH: V1.0
Copyright 2001 Psybercore, Inc. - All Rights
Reserved.
Selling redistributing or modifying any or
all of the code for this program without prior written consent is expressly forbidden. You
must obtain written permission before redistributing this software over the Internet or in
any other medium. In all cases copyright and header information must remain intact.
System Requirements
Unix or Lynyx operating system
Perl 5 with sockets library installed
Telnet access
Ability to run cgi outside of your cgi-bin is
recommended
Preliminaries
Determine the path to PERL 5 on your web
server host. Note that some web hosting companies run both PERL 4 and PERL 5.
Make ABSOLUTELY sure you are not setting this up under PERL 4. Ask your
administrator if you are not sure.
If you need to review or learn the basics of
CGI and Perl check out the superscripts tutorial
archives.
Download the tarfile for this program and
save it to your desktop.
Unpack the tar archive on your desktop using a
program that unpacks UNIX TAR ARCHIVES. If you don't have such a program then download
WINZIP FREE from SHAREWARE.COM.
After you have unpacked the TAR archive you
will have a collection of folders and files on your desktop. Now you have to do some
basic editing of each of these files (or at least some of them). Use a text editor
such as wordpad, notepad, BBEdit, simpletext, or teachtext to edit the files. These
are NOT WORD PROCESSOR DOCUMENTS they are just simple TEXT files so don't save them as
word processor documents or save them with extentions such as .txt or they will NOT WORK.
Note that there may be a some files inside of folders which are "blank".
This is normal.
Preparing the CGI scripts
Define Path To PERL 5
The first step is to open up each and every
file that has a .cgi extention and edit line number one of each script. Each of the
cgi scripts is written in perl 5. For your scripts to run they must know where perl 5 is
installed on your web server. The path to perl 5 is defined to a cgi script in the first
line of the file. In each of the cgi scripts the first line of code looks something like
this:
#!/usr/bin/perl
If the path to perl 5 on your web server is
different from /usr/bin/perl you must edit the first line of each cgi script to reflect
the correct path. If the path to perl 5 is the same no changes are necessary. If you do
not know the path to perl 5 ask the webmaster or system administrator at your server site.
Configure the .cgi files
superfetch.cgi lines 23-25
$remote = "www.cybercore.net";
$output = "network.gif";
$url = "/pix/network.gif";
$remote is the DOMAIN NAME of the server you
are RETRIEVING your file from
$output is the NAME of the specific file you
are SAVING on your unix machine
$url is the PATH of the FILE from the domain
on the FILE SERVER
eg: in this example configuration I am
fetching a file called network.gif located at http://www.cybercore.net/pix/network.gif
File Access Permissions
File access permissions must be set correctly
for this program to run. The table below lists the permissions of each file which are to
be set by the unix command ( chmod ) used to set the correct access permissions. You must
set the access permissions for each of these files.
CHMOD
755
CHMOD
777
superfetch.cgi
DIRECTORY YOU
RUN
SCRIPT IN
or a blank text file
named according to $output
(see below)
Running the program
Now simply run superfetch.cgi from shell
perl superfetch.cgi
NOTE!!! The directory you are running this in
MUST be set to chmod 777 or NO NEW FILES
can be uploaded this way! If this is not
possible then simply upload a BLANK text file and title it
according to $output (i.e. in the example
configuration I am retrieving a small 4K gif from my main server (cybercore.net)
Wyszukiwarka
Podobne podstrony:
Longissimus Thoracis (Superficial Erector Spinae) anatomySuperficial Fascia in the Hip Adductor Muscle Group tapeSPIliocostalis Lumborum (Superficial Erector Spinae) anatomyLongissimus Thoracis (Superficial Erector Spinae) tapeSPLongissimus Cervicis (Superficial Erector Spinae) KT methodFlexor Digitorum Superficialis anatomySuperficial Fascia in the Hip Adductor Muscle Group KT methodIliocostalis Lumborum (Superficial Erector Spinae) tapeSPfIliocostalis Lumborum (Superficial Erector Spinae) testSuperficial Fascia of the Pes Anserinus KT methodIliocostalis Cervicis (Superficial Erector Spinae) anatomySuperficial Fascia of the Iliotibial Band KT methodLongissimus Capitis (Superficial Erector Spinae) anatomyAEW15060 SUPERFROSTLongissimus Cervicis (Superficial Erector Spinae) anatomyIliocostalis Cervicis (Superficial Erector Spinae) testIliocostalis Thoracis (Superficial Erector Spinae) KT methodwięcej podobnych podstron