Monday, May 24, 2010

What is the difference between perl, cgi, and java scripting?

what can they do and how easy are they to learn

What is the difference between perl, cgi, and java scripting?
Perl is a scripting language that can be used to program many kinds of interactive web pages - shopping carts, bulletin boards, databases, etc. Perl scripts run on the web server. CGI is the interface that perl uses to connect between the web browser and the server. So what is called a CGI script is often written in perl, though it can be in any code that can be executed on the server. Very often a CGI script is what is used to process an HTML form.





Javascript is a language for manipulating the information on a web page. It's used for dropdown menus, special mouseover effects, form checking, and other small tasks. Javascript code runs on the users browser, not on the server.





There is also Java, which is very different in form from Javascript. Like Javascript, Java runs on the user's computer. Java is often used to create animated web presentations.





There are other server-side options that can be used in place of perl/CGI. .NET is a programming system for Windows servers. PHP is a popular scripting language that will run on most servers.





You'll be able to do just about anything you can think of with web pages if you master Javascript and PHP or perl in addition to HTML/XHTML and CSS. It's not hard to learn the basics and start using these tools. Like everything else, true mastery is a matter of hard work, talent, and creativity.
Reply:perl is a scripting (programming) language. It is mainly found on unix/linux systems but you can get it for windows as well.





CGI common gateway interface is a way for a web server to execute programs/scripts on the server from url requests. A lot of CGI routines are written in perl but they can be written in any language which can be run (compiled and run) on the server. CGI provides ways for the program to retrieve POST and GET data from the request and has full access to the server for saving data or responding to the request with some HTML or other code. An example would be a post message comes in from a user and the data is saved to a file, an email is sent and a response page is sent back.





javascript is a programming language which is included in the HTML sent to a browser. The browser then interprets and executes the code. This allows interactive web pages to be created containing things like drop down menus and animation.
Reply:A cgi is a file on a server that handles certain routines (emails, forms, and such) and is usually written in a programming language "perl" but noot always, it can be written in other languages, too. JavaScript is another programming language, common in web design/development.
Reply:Their languages are different formulas for writing scripts. CGI is for Sign my Guest book, forms, and Polls etc.





Java is for making things that perform like moving GIFs, writing real small programs that make your pages functions load faster so people don't leave after waiting.





As for learning a language easy means practice and if you have a good memory and can put together junks of symbols together so they make sense. You should have the basics of them down in a few weeks.
Reply:Perl is a programming language. It is a coding language that is both easy to learn and more natural to man. It is is used to set commands for a computer to do some computations.





Now, Java Script (written Javascript) is a progarmming language for adding 'functionality' to a website, ususally on the client site.


It is a bit easy to learn too.





Lastly, CGI (common gateway interface) is a standard way of communicating data between a server and a client. It lays RULES to be followed in relaying this data. It is an interface (i.e. 'a go-between' between a program and a web server.


Usually CGI is written in PERL.

flower arrangement

No comments:

Post a Comment