Page 213 - PYTHON-12
P. 213
Some of the useful features of visual basic are not supported by VBScript such as strong
typing, extended error trapping and the ability to pass a varied number of parameters to a
sub-routine. However, its use is relatively widespread because it is easy to learn. VBScript
can be effectively used for automating day-to-day office tasks as well as monitoring in
Windows- based environment. When used for client-side web development in Microsoft
Internet Explorer, VBScript is similar in function to JavaScript. It is used to write executable
functions that are embedded in or included from HTML pages and interact with the
Document Object Model (DOM) of the page, to perform tasks not possible in HTML alone.
VBScript is simple to create and can be written using text editor like Notepad. A simple
VBScript document is saved with “.vbs” extension.
Example of VBScript is as follows:
<HTML>
<HEAD>
<TITLE>My first VBScript</TITLE>
</HEAD>
<BODY>
<SCRIPT TYPE="text/vbscript">
document.write("Welcome")
</SCRIPT>
</BODY>
</HTML>
3. PHP (Hypertext Pre-Processor)
PHP stands for Hypertext Pre-processor. It is a server-side scripting language that is used
to enhance web pages. With PHP, a user can do things like create username and password
login pages, check details from a form, create forums, picture galleries, etc. It was created in
1994 by Rasmus Lerdorf to add dynamic content to an HTML page. PHP initially stood for
‘Personal Home Page’, but now it is translated as ‘PHP Hypertext Pre-processor’. The PHP
code is embedded within the HTML code between special tags. When the page is accessed,
the server processes the PHP code and then sends the output from the script as HTML code
to the client.
The salient features of PHP are as follows:
(i) A user can create dynamic web pages with the PHP scripting language.
(ii) It is a server-side scripting language and, therefore, the PHP scripts are executed on
the server.
(iii) PHP is free and an open source software product.
Computer Networks
(iv) PHP provides connectivity with many databases (MySQL, Sybase, Oracle and many
others).
(v) PHP runs on different platforms (UNIX, Linux, Windows).
(vi) PHP is compatible with almost all web-servers used today (Apache, IIS, etc.).
(vii) PHP commands are embedded within a standard HTML page.
8.59