For Programmers: Free Programming Magazines  


Home > Archive > PERL CGI Beginners > May 2004 > CGI vs ASP - which should I use









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author CGI vs ASP - which should I use
George Burdell

2004-05-22, 11:31 am

I'm setting up an affiliate system, and have a choice of using a cgi script
or an asp script. the cgi script link would look something like

www.mywebsite.com/cgi-bin/cmd.cgi?c...ack&afid=123456

and the asp link would look something like:

www.mywebsite.com/cmd.asp?123456

Is there any advantage of asp vs cgi to visitors? Will search engines
follow the asp link and the cgi link?

Any help and thoughs are appreciated.

George Burdell


Michael Capone

2004-05-22, 11:31 am

"George Burdell" <nospam@nospam.net> wrote in message news:<yPOdnQQYSYcLePPdRVn-ig@comcast.com>...
> I'm setting up an affiliate system, and have a choice of using a cgi script
> or an asp script. the cgi script link would look something like
>
> www.mywebsite.com/cgi-bin/cmd.cgi?c...ack&afid=123456
>
> and the asp link would look something like:
>
> www.mywebsite.com/cmd.asp?123456
>
> Is there any advantage of asp vs cgi to visitors? Will search engines
> follow the asp link and the cgi link?
>
> Any help and thoughs are appreciated.
>
> George Burdell


Hello George,

There are two considerations here; first, what languages are you
comfortable programming in, and second, how busy will this web site
get?

Traditional CGI programs written in perl, when they are called, launch
a new process each time. It's just like double-clicking on the perl
program in Windows, each time. Perl will load up, read the script,
run it, send the output to the server, and shut down. On a windows
box, this can become a performance hit as a server gets busier.

ASP pages, on the other hand, are loaded once the first time they are
called, and stay in memory after that, making them more responsive
under high loads.

Most web developers these days would recommend against traditional
CGI. In the Unix / apache world, solutions like mod_perl exist to
keep "traditional" perl cgi programs in memory, much like ASP pages.
Perl fans like myself tend to think this is the best of both worlds.

Bottom line: If you're comfortable with VBScript, ASP is the better
choice. If you're more comfortable with Perl, consider a mod_perl
solution on linux / unix, or ActiveState's PerlScript in IIS. Don't
use traditional CGI.

Good luck!
Michael Capone

2004-05-22, 11:31 am

"George Burdell" <nospam@nospam.net> wrote in message news:<yPOdnQQYSYcLePPdRVn-ig@comcast.com>...
> I'm setting up an affiliate system, and have a choice of using a cgi script
> or an asp script. the cgi script link would look something like
>
> www.mywebsite.com/cgi-bin/cmd.cgi?c...ack&afid=123456
>
> and the asp link would look something like:
>
> www.mywebsite.com/cmd.asp?123456
>
> Is there any advantage of asp vs cgi to visitors? Will search engines
> follow the asp link and the cgi link?
>
> Any help and thoughs are appreciated.
>
> George Burdell


By the way, search engines will happily follow either link.
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com