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":

 
http://www.mybiz.com/cgi-bin/formprog.pl>


I will go inform whatis.com guys about omission :-) I can see it in page source

 
Comment  
From: cheekycj
 Date: Thursday, October 19 2000 - 09:20PM GST  
ASP- Native to IIS but available (for quite some time now) on other web servers and Platforms (like apache and unix) via modules like Chillisoft's ASP. Performance is pretty good.  Plenty of resources.  Small to medium learning curve.

Perl- Available on all platforms and OSes that I know of.  Very fast when it comes to string parsing and manipulation but it is not at all an efficient language (it doesn't support process threading) Well, mod-perl does but its not that great.

JSP- Ahh, Sun's answer to ASP.  It is pretty much ASP with Java, the downside is that you have to learn java and the upside is that you can USE java in your pages.  Very efficient and fast.  It resides as compiled code... which runs very efficiently.  I have found JSP to be the most extensive, efficient and robust solution.
  Quite a few sites are moving to JSP and servlets.  JSP is supported on pretty much any and all platforms right now.
JSP can use servlets or EJB for Database access or you can embed java in the JSP page itself to do the DB access.. bottom line you use Java to do the DB queries, etc.


PHP- A nice simple server side script with good powerful functions.  It is supposed to have good performance.  I like PHP and it is available on most platforms... I tested it with IIS. I like to call it Perl on Steroids.

And do not forget ColdFusion- This is a very powerful language.  If you are building a straight forward DB driven site... CF is the way to go.  It lets you crank out pages and pages that are DB driven faster than any of the languages out there.  Performance is very good too.  It has the lowest learning curve of all the languages out there.  It is available on Linux, Unix and NT.
CF- Check out www.allaire.com/coldfusion and for extra info:
http://www.forta.com/cf/
http://rtb.home.texas.net/cf/
http://www.allaire.com/cfdocs/dochome.htm
http://download.cnet.com/downloads/0-10069-108-19362.html?tag=st.bl.f080300.more.10069-108-19362
(83% users recommend using CF go read some of the comments)
http://netcenterbu.builder.com/Programming/ColdFusion/?tag=st.bl.f080300.more.ColdFusion

CJ


 
Comment  
From: cheekycj
 Date: Thursday, October 19 2000 - 09:34PM GST  
here is an article that is a server side scripting language shootout (its pretty good):
http://hotwired.lycos.com/webmonkey/99/46/index1a.html

another good article:
http://www.4guysfromrolla.com/webtech/030200-1.shtml

Good IBM article:
http://www-4.ibm.com/software/developer/library/script-survey/?loc=007&t=nl0
http://www-4.ibm.com/software/developer/library/script-survey/

Good article:
http://www.risource.org/Papers/wp-webapp.html#section-1.3

An article (sort of biased) on why this guy likes JSP better than ASP and Livewire (Netscape's server language)
http://www.white-mountain.org/jamie/software/asp-sucks.shtml

more articles:
http://www.jspin.com/home/references/scriptin

Code on pretty much all of them:
http://www.thescripts.com/serverside/

Emperical comparison of most of these lanaguages:
http://wwwipd.ira.uka.de/~prechelt/Biblio/jccpprtTR.pdf

http://www.fred.net/dhark/wdb.html
[goto its cgi section]

IMHO Java/Servlets/JSP/EJB give you the most features, security, scalability, performance, reliability and modular architecture you could possibly need.
its the J2EE architecture by Sun:
http://www.javasoft.com/j2ee

CJ

 
Comment  
From: GEM100
 Date: Thursday, October 19 2000 - 09:35PM GST  
Here are some ASP and PHP links from one PAQ I answered:

ASP links:   http://www.pageresource.com/asp/asp1.htm
                  http://www.learnasp.com/
                  http://www.webappdeveloper.com/ASP.htm


PHP links:   http://www.pageresource.com/asp/php1.htm
                 http://netquest911.net/phpwhatis1.htm
                 http://www.php.net/


And I just can't find that link with opinions of ASP vs PHP, but basic idea was that they are quite similar and depending on tastes and likes (well, some just hate java) will be choosing accordingly. And as I said, go for Perl/CGI (or ASP)

 
Comment  
From: GEM100
 Date: Thursday, October 19 2000 - 09:37PM GST  
and MOD_PERL rulez in fact :-P

 
Comment  
From: cheekycj
 Date: Thursday, October 19 2000 - 09:42PM GST  
mod_perl is good but I don't know about it ruling ;-)

CJ

 
Comment  
From: singleton
 Date: Thursday, October 19 2000 - 10:00PM GST  
Here are some links from a program I did for the Tulsa Computer Society:

ASP http://www.tcs.org/webpage0.htm#asp
CGI http://www.tcs.org/webpage0.htm#cgi
JSP http://www.tcs.org/webpage0.htm#jsp


 
Comment  
From: SlappyJack
 Date: Thursday, October 19 2000 - 11:25PM GST  
to toss in my 2c...

Cold Fusion?  You need big hardware to do anything large scale in CF.  its a great way to learn scripting, tho.

Professinally, i work writing ASP and banging it against an SQL7 server and the thing wuns pretty damn well.  Of course, we're getting IIS exception errors every two hours and NOONE knows why or how to fix it.

M$ told us:
"Exception errors are very hard to track down, let alone fix".  yeah, thanks, Sparky.

My personal site uses PHP on an Apache server with a MySQL.  The cost of this is roughly a hundredth of the M$ way to do it, and there are a billion geeks out on the web that can and will help you.
Documentation? Free by the truckload online.
Not to mention that it runs a lot faster that SQL7 in certain situations.

again, just my 2 cents

(that link singleton put in - VERY nice)

 
Comment  
From: cheekycj
 Date: Friday, October 20 2000 - 02:38AM GST  
experience wise well..

my current company A dot com uses ColdFusion.  It runs on Linux with Apache. 40 boxes but with Linux and Apache being free thats not too bad.. but the site is one of the top 10 ecommerce sites on the net so it needed that much to handle close to 200K unique visitors a day.

my last company was a fortune 50 company with 160,000 employees.. used ColdFusion as their intranet app server.  They switched from Perl due to features and scalability.

ASP is good but high traffic sites like ebay (that run on NT servers) pick C++ to code dll for their cgi's rather than use ASP (due to performance and bugs)

M$ themselves try to convert Hotmail to ASP and it failed to scale.

ASP offers more coding power than CF though...

JSP/Servlet/EJB solution (J2EE architecture) is very scalable.

Merril Lynch is re-developing their online brokerage to be more secure, scalable and reliable and they chose the J2EE architecture.

My current company, though currently running on CF, is doing a phased conversion to Servlets and JSP due to performance, features and scalability.  Also switching to use XML in the backend.

I should mention though that a lot of our backend scripts that are administration related are Perl scripts executing through Mod_Perl.

But that is just my experience.

CJ

 
Comment  
From: cheekycj
 Date: Friday, October 20 2000 - 02:39AM GST  
singleton, gem100: you guys probably think I sound like a broken record by now ;-)

 
Comment  
From: GEM100
 Date: Friday, October 20 2000 - 05:39PM GST  
no, I dont :-)

 
Comment  
From: GEM100
 Date: Friday, October 20 2000 - 05:48PM GST  
BTW, windlander, you can incorporate combinations of them, and see what would be more convenient, cost effective, and generally suitable for you on the long run. At the moment we hopefully provided enough data for you to at least determine starting point, and I think that during the process of doing your project, you'll have enough experience to choose yourself what's suitable for what part of it. G-Luck

 
Comment  
From: cheekycj
 Date: Friday, October 20 2000 - 06:19PM GST  
yeah, I think we gave u enough info to get a good feel of each scripting language.. the key is to assess what your needs are.. prioritize the needs and then select the development language that will fit your needs/priorities the most.

And like GEM100 stated, sometimes a hybrid system (combo of languages) will be the ideal solution for you.

CJ

 
Comment  
From: windlander
 Date: Friday, October 20 2000 - 09:08PM GST  
Hi .. is me again ..
thanks for the information that all the helper ,willing to helping me ..i really need that .
But there is one more Question i like to ask , for example
if i want to create a webside that contain alot of Huge Data Information and providing the Search Engine ....
Which Script language , OS ,Server and Datasoftware will be suggested ?

once again ...thanks for helping me .....

 
Comment  
From: windlander
 Date: Friday, October 20 2000 - 09:18PM GST  
Hi .. is me again ..
thanks for the information that all the helper ,willing to helping me ..i really need that .

But there is one more Question i like to ask , for example
if i want to create a webside that contain alot of Huge Data Information and providing the Search Engine ....

Which Script language , OS ,Server and Datasoftware will be suggested ?

once again ...thanks for helping me .....

 
Comment  
From: GEM100
 Date: Monday, October 23 2000 - 10:53AM GST  
Well, again, if it's huge, I guess you should go with ombinations of them, but my preferences are:

Perl/CGI, BSD/OS (or Linux), Apache

 
Comment  
From: cheekycj
 Date: Monday, October 23 2000 - 04:03PM GST  
for DB Software go for something that is scalable like DB2 or Oracle (for *nix) or SQL Server for NT.

CJ
 













SECOND PAQ (basically the same as first):

Question: Opinion on ASP vs PHP  Date: Wednesday, May 31 2000 - 01:39AM GST  
From: bradburke  Points: 40    
   Answer Grade: B  email a friend  
I am new to Web Database development. If you had the choice of learning ASP or PHP, which would you choose? Will PHP be a big enough contender to be around in three years? Is one more powerful than the other? Is one easier to obtain information on? Any help will be appreciated.
 
Accepted Answer  
From: GEM100
 Date: Wednesday, May 31 2000 - 02:14AM GST    


Text below...

Question History  
Accepted Answer  
From: GEM100
 Date: Wednesday, May 31 2000 - 02:14AM GST  
Here I copied some info from whatis server, better than writing in my own words:

ASP (Active Server Page)

ASP is also an abbreviation for application service provider.

An Active Server Page (ASP) is an HTML page that includes one or more scripts (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 (CGI) 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 (IIS), 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 (ADO) 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.


===================================================================


PHP (originally: Personal Home Page)

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 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 PHP 4.


===================================================================





It's really time consuming to write all about ASP and PHP and to compare them, so here are some links from my bookmarks, visit them, and you will know the answer to your question.

Here are some good links:

ASP links:   http://www.pageresource.com/asp/asp1.htm
                  http://www.learnasp.com/
                  http://www.webappdeveloper.com/ASP.htm


PHP link:   http://www.pageresource.com/asp/php1.htm
                 http://netquest911.net/phpwhatis1.htm
                 http://www.php.net/


Nice site to visit:

http://www.useractive.com

 
Comment  
From: GEM100
 Date: Wednesday, May 31 2000 - 02:19AM GST  
I would like to add to my answer, that it does not matter which you go to study. They are quite similar, and if you master one, it is not hard to understand another. Basically go for PHP (because it can run on many platforms), but if it does not matter, learn ASP and you will quite familarize yourself with PHP. G-Luck

 
Comment  
From: GEM100
 Date: Wednesday, May 31 2000 - 02:21AM GST  
I would like to add to my answer, that it does not matter which you go to study. They are quite similar, and if you master one, it is not hard to understand another. Basically go for PHP (because it can run on many platforms), but if it does not matter, learn ASP and you will quite familarize yourself with PHP. G-Luck

 
Comment  
From: GEM100
 Date: Wednesday, May 31 2000 - 02:28AM GST  
Yeah, personally I went for ASP first, as it is just GREAT!

 
Comment  
From: bradburke
 Date: Wednesday, May 31 2000 - 02:31AM GST  
Answer accepted

Random Solutions  
 
programming4us programming4us