60 likes | 87 Views
Understand the differences between CGI and ASP, their pros and cons, and which is better suited for specific web development needs. Discover how each technology sends HTML requests back and forth, runs scripts, and interacts with servers.
E N D
CGI Model sends HTML back request Sends CGI to runs the script and returns HTML Script is stored in the script server
ASP Model 4 sends HTML back request Browser Server 1 2 3 Sends page to runs the script and returns HTML ASP.dll Script is embedded in the source page
Pros and cons of CGIs • Pros: • can be written in any programming language • can run in all hardware & software platforms • large library of free applications/scripts • Cons: • performance problems, specially in Windows • more complex programming than alternatives, Perl, C and Java
Pros and cons of ASP • Pros: • simpler to program in Windows, using VBScript or JavaScript • ASP.dll is loaded in the same space than IIS • designed to support data bases • Cons: • Mostly restricted to Windows platform (20+% of servers)
Others • Win-CGI: programs in Visual Basic or C using the equivalent of cgi-lib.pl • Macromedia’s Cold Fusion: code is embedded in the pages as ASP. • PHP: also a embedded code page generator, but free.