60 likes | 284 Views
CGI vs ASP. 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.
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.