Discussion On Server Side Scripting-ASP1
Discussion On Server Side Scripting-ASP1
Table of Contents
1. Introduction to the assignment....................................................................................2
3. ASP..............................................................................................................................4
4. PHP..............................................................................................................................9
5.1. Price....................................................................................................................11
5.2. Capability...........................................................................................................11
5.3. Speed..................................................................................................................11
6. Perl Scripting.............................................................................................................13
8. Conclusion.................................................................................................................15
9. Reference...................................................................................................................16
VBScript JScript
XSL Lotus Script
DSSSL Perl
ECMA Script PHP
JCL Python
Java Script
(Anon. 2000)
ASP.
ASP stands for Active Server Pages.ASP is built by Microsoft Technologies.
ASP is a program that runs inside IIS. IIS stands for Internet Information Services. ASP
uses server-side scripting to dynamically produce web pages that are not affected by the
type of browser the web site visitor is using. The default scripting language used for
writing ASP is VBScript, although you can use other scripting languages like JScript
(Microsoft's version of JavaScript).
ASP pages have the extension .asp instead of .html, when a page with the
extension .asp is requested by a browser the web server knows to interpret any ASP
contained within the web page before sending the HTML produced to the browser. This
way all the ASP is run on the web server and no ASP will ever be passed to the web
browser.
Any web pages containing ASP cannot be run by just simply opening the page
in a web browser. The page must be requested through a web server that supports ASP,
this is why ASP stands for Active Server Pages.
As ASP was first introduced by Microsoft on its web server, Internet
Information Services (IIS), which runs on Windows 2000/XP Pro/NT4, it is this web
server that ASP pages usually run best on. (Anon. 2000)
(Anon, 2003)
Second, VBScript is the default language that Microsoft chose to deliver with
Active Server pages. That means that most of the example code that comes with Asp is
in VBScript. (Russell Jones .A 2000)
ASP engine finishes its job of processing the code and then send the codes to users
browser. From this point on words till again the page request comes back to server,
there is no control of ASP on the page. ASP could not expect to perform some tasks
which are likely to happen at the client browser end. (Plus2net)
• Disadvantages of ASP
The data security is one of the biggest problems which inhibit the further application of
the ASP platform. An ASP-oriented intrusion detection model was also proposed, and
the intrusion detection subsystem function was analyzed in detail as well as the
flowchart of the intrusion detection model. Finally the CA application model for the
ASP platform was studied. The security strategy proposed in this paper will efficiently
improve the function of ASP platform and enlarge its application scope.
PHP
PHP is a server side scripting language, widely used in internet programming. Formerly
referred to as “Personal Home Page Tools,” Hypertext Preprocessor is an open source
server side scripting language. It is very popular for developing web based software
applications because programmers can use it easily to create web pages with dynamic
content that interact with databases. PHP scripts are executed on the server. Users can
develop pages with dynamic content by using PHP. By using PHP users can interact
with database servers and manage the page content accordingly. The difference between
a static page like HTML and dynamic page like PHP is the way the server interpret the
request. PHP is a open source software, supports many databases (MySQL, Informix,
Oracle, Sybase, Solid, PostgreSQL, Generic ODBC, etc.). the file extensions of PHP
files are “.php” or “.phtml”. PHP combined with MySQL are cross-platform (users can
develop in Windows and serve on a Unix platform). PHP runs on different platforms
(Windows, Linux, Unix, etc.)
(Anon, 2003)
(Anon, 2003)
• Price
PHP is cheaper to implement that ASP.
• Capability
PHP gives us additional capability than if we were to code with ASP.
• Speed
PHP is relatively much faster and stable than ASP, ASP is built on a COM-based
architecture so whenever a program tries to connect to a database or he calls a COM
object there is an overhead on the server, all this COM overhead adds up and slows
things down. Under PHP, everything runs in PHP's memory space. This means that PHP
code will run faster because there is no overhead of communicating with different COM
objects in different processes. Again ASP is slower and more memory intensive
applications than PHP's model because each ASP language compiler runs in its own
process. (Anon, 2004)
• Open Source
Open source software is a collaborative effort amongst a worldwide community of
volunteer programmers with a passion for technology. Programmers disparate
backgrounds and experiences join together to solve problems in new ways, thus
resulting in better software. Open source software is free to use, copy, and modify,
which makes it a great deal for our clients. It is also highly flexible, because it allows us
to extend the software and customize it for our clients’ requirements. Users don’t have
to reinvent the wheel when we embark on a project for a client, as there is an amazingly
extensive library of software written in PHP that’s free and available in source code
form. Whenever possible, users can repurpose their own extensive code library. But if
they haven’t already built a similar web application before, the best open source
software to meet the functional requirements and pick up where that software left off.
(Stephan Spencer, 2003)
• PHP is platform-agnostic
It will run on Linux, Solaris, Windows, and other operating systems as well. With ASP,
users also forced down a path that is very costly and painful to extricate their selves. For
example, what if a user wanted to switch web hosting providers to one that was more
reliable and had better customer service built based by Linux? ASP only runs reliably
on Microsoft Windows-based web servers.
• PHP is secure
IIS Server is notorious for its security holes. (Stephan Spencer, 2003)
Request object. PHP’s HTTP header manipulation functions are easier to use than in
ASP. (Stephan Spencer, 2003)
Perl Scripting
Perl is a “glue” language /“duct tape" language that combines features and syntax from
several common languages, most notably C, UNIX command shells, and even a bit of
Visual Basic. Perl is written in C and was developed on UNIX systems which most
noticeably define Perl Scripting roots and personality. However, Perl Scripting is a lot
like the English language in that it freely borrows key words, operators, and syntax
from other languages. The current version of Perl is quite large and complex compared
to earlier versions. Perl is an interpreted language like many other contemporary
interpreted languages, Perl Scripting compiles its source code (an ASCII text file) into
an intermediate "byte code" language after scanning for syntax errors, than interprets
the compiled byte code. Unlike traditional compiled languages, however, the
intermediate binary code is not written and saved as a machine readable object file. One
of the disadvantages of interpreted languages commonly given is the translation time
penalty each time the program is run. While this is generally true, Perl is quite fast and
efficient on contemporary operating systems. On the other hand a commonly cited
advantage of interpreters is their use as quick and (relatively) easy prototyping tools, an
area where Perl excels.
Likewise, any language can be coded well - creating fast, efficient, dynamic sites that
do incredible things. It is always the responsibility of the programmer to take the
courses, learn the language as well as possible, and create code that shines.
Conclusion
By doing this research on ASP scripting language I can come to conclusion that ASP is
a good scripting language which runs on many platforms with ability to perform many
backend processing tasks for a web site, same way it can't do many things particularly
the client end operations than other scripting languages like PHP and Perl.
Reference
Stephan Spencer, PHP versus ASP comparison, February 16th, 2003, [Online],
Available. WorldwideWeb:URL: http://www.netconcepts.com/php-versus-asp/
[Accessed 5 August 2009]
Lisa Shea, 2009, ASP, PHP, Perl and ColdFusion, [Online], Available.
WorldwideWeb:URL: http://www.bellaonline.com/articles/art28533.asp
[Accessed 10 August 2009]