Introduction To Webapps
Introduction To Webapps
HTML Documents
Web pages are created using Hypertext Markup
Language (HTML) Web pages are commonly referred to as HTML pages or documents A markup language is a set of characters or symbols that define a documents logical structure HTML is based on an older language called Standard Generalized Markup Language (SGML)
10
11
12
13
14
15
16
17
18
19
20
21
Client/Server Architecture
Server (back end):
A database from which a client requests information Fulfills a request for information by managing the request or serving the requested information to the client Responsible for data storage and management
22
23
24
25
26
27
28
Cant access or manipulate a Web browser like JavaScript Exists and executes solely on a Web server, where it performs various types of processing or accesses databases
29
30
Introduction to PHP
What is PHP?
PHP stands for "PHP Hypertext Preprocessor An embedded scripting language for HTML like ASP or JSP A language that combines elements of Perl, C, and Java
Introduction to PHP
History of PHP
Created by Rasmus Lerdorf in 1995 for tracking access to his resume Originally a set of Perl scripts known as the Personal Home Page tools Rewritten in C with database functionality Added a forms interpreter and released as PHP/FI: includes Perl-like variables, and HTML embedded syntax
Introduction to PHP
History of PHP (cont.)
Rewritten again in and released as version 2.0 in November of 1997 Estimated user base in 1997 is several thousand users and 50,000 web sites served Rewritten again in late 1997 by Andi Gutmans and Zeev Suraski More functionality added, database support, protocols and APIs
Introduction to PHP
History of PHP (cont.)
User base in 1998 estimated 10,000 users and 100,000 web sites installed Version 3.0 was released in June 1998 as PHP Estimated user base in tens of thousands and hundreds of thousands of web sites served
Introduction to PHP
History of PHP (cont.)
Rewritten again in 1997 by Andi Gutmans and Zeev Suraski More functionality added (OOP features), database support, protocols and APIs PHP 3.0 is released in June 1998 with some OO capability The core is rewritten in 1998 for improved performance of complex applications
Introduction
History of PHP (cont.)
The core is rewritten in 1998 by Zeev and Andi and dubbed the Zend Engine The engine is introduced in mid 1999 and is released with version 4.0 in May of 2000 The estimated user base is hundreds of thousands of developers and several million of web sites served
Introduction
History of PHP (cont.)
Version 5.0 will include version 2.0 of the Zend Engine
New object model is more powerful and intuitive Objects will no longer be passed by value; they now will be passed by reference Increases performance and makes OOP more attractive
Statements
if, if/elseif Switch/case for, while, and do/while loops Include and require statements for code reuse
Built-in Functions
What comes In the box?
Array Manipulator Functions
sort, merge, push, pop, slice, splice, keys, count
Built-in Functions
What comes In the box?
Directory Functions
Platform independent
Filesystem Functions
Access flat files Check directory, link, and file status information Copy, delete, and rename files
Built-in Functions
What comes In the box?
IMAP Functions
Manipulate mail boxes via the IMAP protocol
LDAP Functions
Works with most LDAP servers
Mail Functions
mail($recipient, $subject, $message)
Built-in Functions
What comes In the box?
Database Functions
dba: dbm-style abstraction layer dBase Frontbase Informix Ingres II Interbase mSQL
Built-in Functions
What comes In the box?
Database Functions (cont.)
MySQL Oracle PostgreSQL SQL Server
MING
Macromedia Flash
PDF
Create/manipulate PDF files dynamically
Built-in Functions
What comes In the box?
POSIX Functions
Manipulate process information
Summary
In 1990 and 1991,Tim Berners-Lee created the
World Wide Web at the European Laboratory for Particle Physics (CERN) Transmission Control Protocol/Internet Protocol (TCP/IP) is a large collection of communication protocols used on the Internet A Document Type Definition (DTD) defines the elements and attributes that can be used in a document
57
Summary (cont..)
Cascading Style Sheets (CSS) are a standard
set by the W3C for managing the design and formatting of Web pages in a Web browser A system that consists of a client and a server is known as a two-tier system A three-tier client/server system consists of the client tier, the processing tier, and the data storage tier
58
Summary (cont..)
JavaScript is a client-side scripting language that
allows Web page authors to develop interactive Web pages and sites Hypertext Preprocessor (PHP) is a server-side scripting language that is used for developing interactive Web sites Open source refers to software for which the source code can be freely used and modified
59
ICT Center
We are making IT happen
Integrity
Commitment
Teamwork