Quote:
Originally posted by TDO2000
lol in 45 minutes you only know some small basics... Perl (if u are doing big things not silly stuff like a guestbook) can be as complicated as any other language... and yeah you are right, compared to perl, PHP is very easy to learn (even veeeeery fast if u have Perl knowlage) bc many parts are based on Perl... but with better and easier acces to many things...
"CGI is just a different version of perl" <--- u haven't read my post dude, plz don't talk nonsens... cgi != Perl it's only one of these languages used for cgi it's not cgi itsself...
|
cgi is perl. cgi is c++.cgi is c. cgi is parsed by whatever you choose after the
sheebang on a linux platform meaning that cgi == perl if you run it as /usr/bin/perl (or whatever you choose as the process) cgi can also ==c++ if you do /usr/lib/glibc. also in 45 minutes i learned the entire language...believe me...i am a company co-owner & website designer. however php is very simple in about minutes you can be scripting logins, etc. so cgi is the an emulation of whatever you choose as the interface that can be provided as a feature to the web...also you can run .pl files as perl if you want. I'll admit i was wrong saying it was a language, but it is a basic emulation of perl meaning you can call them the same thing. either way php is simpler, faster, and more useful if you don't feel like setting the variable type of each variable...
[definition of cgi]
The Common Gateway Interface (CGI) is a standard for interfacing external applications with information servers, such as HTTP or Web servers. A plain HTML document that the Web daemon retrieves is static, which means it exists in a constant state: a text file that doesn't change. A CGI program, on the other hand, is executed in real-time, so that it can output dynamic information.
[/definition]
[definition 2 for clarification]
CGI stands for Common Gateway Interface, and is a mechanism through which a browser is allowed to communicate with programs running on a server. If you look at each word in turn it makes more sense -
Common - something that is available to many people, regardless of what software they are using.
Gateway - a portal through which two things communicate. In this case, the browser communicates to the server.
Interface - this implies that we are providing a "front end" for the application running on the server, which is exactly what it is. You enter information in the form, for example, and this is submitted to the program, just like a windows-style program.
[/definition]