PDA

View Full Version : I need a sample


Tails
01-27-2003, 08:54 PM
Can someone email me a cgi file? I have seen them in action but I don't know how they work since I can't save them from their sites. I don't know what they look like. I will pick up fast once I see one.

Tails
01-29-2003, 07:45 PM
Any cgi file or place with tutorials please.

Philip M
01-29-2003, 08:41 PM
There are many sites, e.g. www.hotscripts.com which have a vast range of Perl, ASP and PHP scripts, plus links to tutorials. It appears that you are not trying!

Tails
01-29-2003, 10:24 PM
I was trying. But I don't even know what cgi is let alone what category it would be to look for it. It is something that can be used offline, right? I'm a fast learner by the way.

Tails
02-05-2003, 08:14 PM
Can cgi be used offline? I don't own my own server or internet connection.

crackn101
02-06-2003, 01:16 AM
Yes cgi perl scripts can be used offline.
But it does take some software to be installed first.
If you are an avid Dos or unix guy, then the dos prompt
environment will feel right at home for you.
But in most cases what you need is a good perl ide
development suite.
Personally i really like the program Perl Builder from
http://www.solutionsoft.com
not free, but they do have a free trial download.
Others may like the one from activestate.
http://www.activestate.com/
They have a nice variety of programming tools.
Maybe someone else can suggest any nice free ones ??

Take Care.

Crackn101

mburkwit
02-06-2003, 05:08 AM
http://adashimar.hypermart.net/

I am learning also...


http://www.cgi101.com/class/


http://www.aestheticsurgerycenter.com/scripts/postcard/

mburkwit
02-06-2003, 05:16 AM
CGI is a set of instructions that create a stand alone webpage independant of you doing anything. Think of a guestbook entry or an ecard that someone sends you,... after the information is entered, your info is formatted into an ecard or guestbook entry. Your information was taken by the cgi script and put back onto a seperate webpage without a human making the webpage at all. After you make your selections for an ecard (picture, color, font, message...) the script takes those choices and creates a webpage with your chosen picture, color background, type text and message on its own webpage. Who programmed the ecard? the cgi script did! (I am also learning so send me info that helped you)

Tails
02-06-2003, 11:01 PM
Actually, I am a real DOS user. Nearly all my good programs run on it. The best graphics program I use runs on that. So in that category, what is the software I should use? (I may be new and sound annoying here in the cgi forum, but I am very skilled in DOS, HTML, CSS, and JS). Either cgi or perl is good for me as long as they can both be used offline with no additional machines or network. I know DOS, but I never tried Telnet either yet since I use a free web page which won't allow much. So I'll start out small. http://XFox_Prower.tripod.com

top500
02-17-2003, 03:27 AM
Nobody ever explained this to me. It's real simple, but unless someone gets it like it is, it's impossible to understand.
Now...

CGI is not a language. You can not program cgi and you can not code in CGI. It does NOT work like a OS but if you ever lease a whole Unix server, that is like DOS except Unix is more 60's where DOS is more 80's-90's. Still, CGI is not hard if you know DOS, you WILL get this but no it is not really a OS.

Ok, so what is cgi -
cgi is a ~Common Gateway Interface~
yo dig diz~! Common Gateway Interface.
CGI is just a path, a gate-way, a simple interface, almost like an interpreter, but not as fancy. I suspect it is called that because it acts as a doorway between the core of Unix and the surface of Windows, for lack of a better explanation. Anyway...it's a gateway, a portal of sorts. Think of it as an 'enabler' as it will 'enable' you to do stuff.

What you do is you find PROGRAMS to PUT in the bin, and that is all the bin is good for. Yes - Software - it is not written in CGI. No this is important because you can not find code written in CGi because CGI is not a language.
However, the MOST COMMON PROGRAMMING LANGUAGE for PROGRAMS that go in the CGI-BIN (90% of CGI-based progs are written in this language) is:
PERL (Practical Extraction and Report Language)

Therefore, you get PERL PROGRAMS for the CGI bin. :-)

Perl is kinda like Advanced Javascript with a XML twist. But, most programs are already written so copy-n-paste applies and at least half are free, so don't pay loads of cash unless you NEED support (like maybe the first time, and as a guideline, never pay for perl... well, almost never *s*). Ask around, look around. Yes, hotscripts.com and cgi.resourceindex.com are good.

Okay. so you find some scripts written in PERL and put'm in the CGI bin and you got it going on. You will probably need a Unix-compliant EDITOR for PERL so use:
http://www.editplus.com/ <- DO *NOT* use NOTEPAD or WORD for dropping things in the bin, please.

Ok, then you prolly check chmods and eff-teepee with the correct protocol (either ascii or binary) and that be that (not quite, but it should do for now).
G'Luck!

p.s.: I started with an Atari 800xl, I believe that would be a BASIC-driven Dos version 2.0 on a 5.25" floppy. :-)

benastan
02-17-2003, 11:16 PM
well, ive searched the internet many a time, and found that the best way to learn CGI/perl is to get a book.

MY FAVORITE BOOK for CGI is:

Elizabeth Castro's
PERL AND CGI
FOR THE WORLD WIDE WEB
Second Edition
Visual Quickstart Guide
Peachpit Press

this book really helps.

also, if u need help with hosting, the only free hosting place ive found is tripod, the cheapest web hosting ive found that gets u a domain too is:

http://www.ipowerweb.com

they are 7.95 a month for a year with free domain.

however if u get less than a year... err.. more expensive.

happy ta help ya!!

Tails
02-18-2003, 09:09 PM
Wow! Edit Plus is exactly what I've been looking for. A colorful text editor that handles quoted things etc (easy to trouble shoot). Wish it were freeware though, darn I'm broke.

I'm on tripod actually at http://XFox_Prower.tripod.com (rate my site please :)) Cgi support is free, right? So for the dos-friendly user, what's the cgi software I need to test and develtop stuff offline? What's on top of the recomendation (freeware) list?