Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

New to CGI

Status
Not open for further replies.

TetsuoAkira22

Programmer
Jun 11, 2002
2
US
Hello all... I'm somewhat new to CGI, and am trying to learn.

Does anyone know a good tutorial on the web? Every one I've seen doesn't go very in depth, have any examples, or is easy to understand.

Also, I have a domain, a good host (on RedHat Linx 7.5.0? The newest version.) with MySQL, no SSH access, but I can change the ChMOD through my FTP, could I use my CGI scripts on it? All the tutorials I have found say "You MUST have SSH access to a unix server, or else it won't work." I haven't seen any reason WHY I would, besides changing the chMOD settings. (I've installed a few scripts, but maybe its different when you're starting out?)


Thanks in advanced, I need to learn CGI, and preferbly fast.
 
Forgot to ask, are there any mySQL tutorials out there too? I'd like to have my CGI scripts access/create databases....

I have yet to find a tutorial this in-depth
 
I can't help you with the tutorials apart from some links



but just wanted to mention one thing:

"You MUST have SSH access" Bull.
SSH access can be useful, I have a script which can only be run this way, but it is not a "must-have"!
Once you can set your permissions via your FTP (which u can) then you're grand!


:: ::
 
I can recommend a great book that will get you going fast, and cover nearly all of the basics. It's a tutorial you actually work through. I love this book. It took me about a week and a half to finish the entire book.

CGI/Perl by Diane Zak (pub. by Course Tecnology)

About your host. First check with your account administrator to make sure you have cgi enabled for your account. (If not, you need an account that provides that functionality. If necessary, check with jlxlinux.com about getting an account.)

Create a folder in your main directory and name it cgi-bin. Place your scripts in there. The first line of each script must contain the path to the Perl interpreter on the server.

I'll try to remember to post some MySQL info later, when I return home from out of town. If necessary, you can always e-mail me at gjn4b9@mizzou.edu.

QUESTIONS: Do you know any SQL? Have you worked with databases at all?

Good luck,

Greg _______________________________________
Constructed from 100% recycled electrons
 
Try checking out Emmie Lewis' course on about.com.. it starts out with perl basics then gets into CGI


It's free, and when you complete a lesson, you post the code in a forum and the instructors will review it and comment on it.. answer questions etc. When I started taking it, it would only take about 3 days on average for the instuctors to get back to you. I was pretty impressed with how helpful the instructors were, especially since it's a free course.
I actually never finished because I didn't have the time, but I'll probably get back to it soon.
The site is also a pretty good reference for basic perl/cgi stuff.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top