|
|
Question : ASP or CGI
|
|
When developing a commercial web-site is it better to use CGI scripting or ASP. what are the main differences to separate these.
|
Answer : ASP or CGI
|
|
Hmm, you don't have to give 600 points (basically it's grade that matters more :-) It will be cheaper to buy PAQs I believe. Anyway, here it is (I don't know if I can do it, but I saw nowhere that I can't):
FIRST PAQ:
Question: Differents between ASP,JSP,php and CGI Date: Thursday, October 19 2000 - 09:03PM GST From: windlander Points: 20 Answer Grade: A email a friend Hi .. i like to know that ,the differents between the ASP , JSP ,PHP and CGI ? .. any advantage or disadvantage ?. Because i like to create somesort as Search Engine with huge Data Base with interested only and i dunno which script would be the best ? and any suggestion for the Database Software can be handle in huge Data in WebServer ?...Thanks you Accepted Answer From: GEM100 Date: Thursday, October 19 2000 - 09:14PM GST
Text below...
Question History Comment From: GEM100 Date: Thursday, October 19 2000 - 09:06PM GST Ummm, I have a lot of info about this. Let me find that links
Accepted Answer From: GEM100 Date: Thursday, October 19 2000 - 09:14PM GST I can now say, that comparing ASP with PHP basically is opinion based, although ASP can run only on M$ servers. Personally I prefer Perl/CGI, but again there are many things to it. Here are definitions of each from whatis.com:
Active Server Page
An Active Server Page (ASP) is an HTML page that includes one or more script (small embedded programs) that are processed on a Microsoft Web server before the page is sent to the user. An ASP is somewhat similar to a Server-side include or a common gateway interface (common gateway interface) application in that all involve programs that run on the server, usually tailoring a page for the user. Typically, the script in the Web page at the server uses input received as the result of the user's request for the page to access data from a database and then builds or customizes the page on the fly before sending it to the requestor.
ASP is a feature of the Microsoft Internet Information Server (Internet Information Server), but, since the server-side script is just building a regular HTML page, it can be delivered to almost any browser. You can create an ASP file by including a script written in VBScript or JScript in an HTML file or by using ActiveX Data Objects (ActiveX Data Objects) program statements in the HTML file. You name the HTML file with the ".asp" file suffix. Microsoft recommends the use of the server-side ASP rather than a client-side script, where there is actually a choice, because the server-side script will result in an easily displayable HTML page. Client-side scripts (for example, with JavaScript) may not work as intended on older browsers.
Java Server Page Java Server Page (JSP) is a technology for controlling the content or appearance of Web pages through the use of servlet, small programs that are specified in the Web page and run on the Web server to modify the Web page before it is sent to the user who requested it. Sun Microsystems, the developer of Java, also refers to the JSP technology as the Servlet application program interface (Application Program Interface). JSP is comparable to Microsoft's Active Server Page (Active Server Page) technology. Whereas a Java Server Page calls a Java program that is executed by the Web server, an Active Server Page contains a script that is interpreted by a script interpreter (such as VBScript or JScript) before the page is sent to the user.
PHP In Web programming, PHP is a script language and interpreter, similar to JavaScript and Microsoft's VBScript, that is freely available and used primarily on Linux Web servers. PHP (the initials come from the earliest version of the program, which was called "Personal Home Page Tools") is a cross-platform alternative to Microsoft's Active Server Page (ASP) technology (which runs only on Microsoft's Windows NT/2000 servers). As with ASP, the PHP script is embedded within a Web page along with its HTML. Before the page is sent to a user that has requested it, the Web server calls PHP to interpret and perform the operations called for in the PHP script. An HTML page that includes a PHP script is typically given a file name suffix of ".php" ".php3," or ".phtml". Like ASP, PHP can be thought of as "dynamic HTML pages," since content will vary based on the results of interpreting the script. PHP is free and offered under an open source license. The latest version is PHP4.
Common Gateway Interface
The common gateway interface (CGI) is a standard way for a Web server to pass a Web user's request to an application program and to receive data back to forward to the user. When the user requests a Web page (for example, by clicking on a highlighted word or entering a Web site address), the server sends back the requested page. However, when a user fills out a form on a Web page and sends it in, it usually needs to be processed by an application program. The Web server typically passes the form information to a small application program that processes the data and may send back a confirmation message. This method or convention for passing data back and forth between the server and the application is called the common gateway interface (CGI). It is part of the Web's Hypertext Transfer Protocol protocol.
If you are creating a Web site and want a CGI application to get control, you specify the name of the application in the Uniform Resource Locator (URL) that you code in an HTML file. This URL can be specified as part of the FORMS tags if you are creating a form. For example, you might code:
and the server at "mybiz.com" would pass control to the CGI application called "formprog.pl" to record the entered data and return a confirmation message. (The ".pl" indicates a program written in Practical Extraction and Reporting Language but other languages could have been used.) The common gateway interface provides a consistent way for data to be passed from the user's request to the application program and back to the user. This means that the person who writes the application program can makes sure it gets used no matter which operating system the server uses (PC, Macintosh, UNIX, OS/390, or others). It's simply a basic way for information to be passed from the Web server about your request to the application program and back again.
Because the interface is consistent, a programmer can write a CGI application in a number of different languages. The most popular languages for CGI applications are: C, C++, Java, and Practical Extraction and Reporting Language. (personally I believe PERL is MOST popular)
An alternative to a CGI application is Microsoft's Active Server Page (Active Server Page), in which a script embedded in a Web page is executed at the server before the page is sent.
Now, with all said, it's up to you to choose, but as I said, I would personally advise you to go for Perl/CGI (or ASP). Most opinions you can hear are subjective anyway :-)
Comment From: GEM100 Date: Thursday, October 19 2000 - 09:16PM GST in the CGI section I noticed this is missing aftter "you might code":
|
|
|
|
|