Programming
TOC
Shadow Incarnate
Project Eco
My Programming History
CGI
Back to D.J.'s Homepage
Back to About D.J.
Shadow Incarnate
I've joined a programming group who is making an RPG called
Shadow Incarnate. It looks promising so far. It's going to be like Secret
of Mana. When the page is up, here
is the link.
(Up to top)
Project Eco
Project Eco has restarted, and I've
quit. But don't let that stop you from joining. Good luck if you can even
find the page though. They have a new page called The 85 page, but the
last time I tried to access it, it messed up royally. The old site is still
intact however, so if you want to seek them, go
to the site. They've got a new release out called Toowhack, which I
enjoyed it. It's got the music to Final Fantasy 7 in the background and
shows a few important looking characters whacking each other to death.
My Programming History
I love programming. Ever since I
played my first Nintendo Game in third grade, The Legend of Zelda for Nintendo,
I've ever aspired to replicate the awesome graphics, music, and sound.
I'm now developing a Role-Playing Game called the Magic Adventure. I'm
using C++ to program it. Other languages I know are Pascal, HyperTalk,
Logo, Basic, HTML, a little JavaScript.
I've programmed some cool games for Pascal which involve
only mouse user interaction. The games are BattleShip and GoMoku. For HyperTalk
a good walking program I made in black and white. That's the problem I
see with HyperCard: color is too difficult and synthetic. Thus I started
to learn C.
I'm now learning JavaScript
and PERL. I'm finding it difficult to program PERL and CGI scripts but
I am learning stuff about Forms and so forth. Here's the field you can
adjust:
I recommend you don't put the number
too large or it'll take a long time to load. At about 4,996 NetScape pauses
it, comments on its length, and gives you an option as to whether to continue
or not. At the moment, this cgi script doesn't work, but the JavaScript
link above does. I'll try to fix it. I want a way to store the data into
a cookie or something and after I read it on the next page delete it so
the default is 100 again. Seems a bit hard, but I'm not sure whether I
need cgi or not for it. Hmmmm...
CGI
I'm Learning some CGI for a web development
job, so I'll try to share as much wisdom as I can (and not to mention fix
the above script).
CGI Tutorial
The following CGI information
is taken from TIAC's site, but I think it's mostly true in general for
all CGI servers.
TOC
What is CGI?
A CGI script is a way of extending what you can
do with the web. Many of the more interactive
World Wide Web sites make use of CGI scripts to
take data from the browser, send it to the server
where it can be manipulated, and then do something
with the output.
For example, you could use a CGI script if you
wanted to have a form search through a database
or Email its output to someone. You can also use
a CGI script to dress up your page with things like
counters.
CGI stands for Common Gateway Interface, which
is a specification for how information is
exchanged between client browsers and http servers.
The CGI specification includes many
environment variables. TIACs servers are compliant
with CGI v.1.1, but have disabled
environment variables for REMOTE_HOST, REMOTE_IDENT,
and various others.
Once your script is written,
here's what to do to run it on your web site:
1.Save it for Unix format in an HTML
editor such as BBedit or HotDog. This is , as the most
common cause of script
errors is the inclusion of CRLFs (carriage return line feeds) that result
from editing scripts
in DOS/Windows/Mac based text editors. Saving in Unix format prevents
CRLFs.
2.Give the file a .cgi extension
so the server knows to execute it.
3.Upload the script to your home
directory (or a subdirectory of your home directory) NOTE:
you don't need to put
scripts into a "cgi-bin" directory for them to be executable. If the
script is in PERL, upload
it as ACSII Plain Text! This is extremely important! Binary uploads of
ASCII files result in
corrupted scripts that will not run, even tho their syntax may be
completely correct.
4.Change the permissions on the file
to 755 so that it's executable. If you don't know how to
do this, you can find
out here.
To learn more about PERL,
check the books.
Learning Perl by Randal Schwartz
Programming Perl by Larry Wall and Randal Schwartz.
Both are published by O'Reilly & Associates
You can also look at http://www.perl.com.
The following references
provide additional information on CGI scripting and advanced web site
development:
The World Wide Web Developers
Virtual Library
The Inter-Net
Webreference.com
The VRML Forum
ASCII Character Table
(nifty!)
Tools for WWW Scripting
Gamelan (java)
Selena Sol's Script Archive
Hagan Heller's HTML Tutorial
Using Server Push/Client
Pull
Unix Commands
The CGI Collection
Build a Homepage
comp.infosystems.www.authoring.cgi
The NCSA CGI page
Yahoo's CGI page.
How do I change file permissions
thru FTP?
Unix file permissions specify how a file can be
used. The permissions settings are given in three classes --
owner, group, and world. A file's owner can specify
the level of file protection for each of these groups. The
numerical file protection levels are:
1.executable
2.writable
3.readable
4.read and executable
5.read and writable
6.read, write, and executable
In a directory listing, these protection levels
are given in a format that looks like this:
-rwxr-xr--
The file in the example above has permissions
of 754, means that the owner has read/write/execute ability,
the group as read/execute, and the world has read-only.
The Unix chmod command can be executed thru most
ftp clients. Here are instructions for using some of the
most popular ones.
WS_FTP (Windows 95, 3.1 and NT)
click with the right
mouse button on the file listing, then pick ftp commands from the menu
and site
from the sub-menu. When
it asks you for a command, type:
chmod thepermissionsyouwant
yourfile.whatever
FTP (Unix,Linux or any text based ftp client on
Mac or windows)
type this line
quote site thepermissionsyouwant
yourfile.whatever
Fetch(Mac)
Go to the the Remote
Menu and choose Send FTP Command in the box type.
site chmod thepermissionsyouwant
yourfile.whatever
CuteFTP(Windows31)
Go to the Commands menu,
select Custom Commands and click on Change Files Access Mask.
In the box type:
thepermissionsyouwant
yourfile.whatever