Professional Documents
Culture Documents
Dynamic 1 PDF
Dynamic 1 PDF
Madiha Kiran
1
Dynamic Website.
2
Dynamic Web
3
Dynamic Websites - Features
4
Dynamic Websites - Features
•
Access can be granted to allow customers to maintain their own
information.
5
Dynamic Websites - Content Management Systems
No software installation is
necessary, just a web browser.
Is Static Right for Your Organization
are limited in budget and are starting with a core web presence
need pages that must pull information from sources external to the website proper
need to be able to easily add and edit web pages (Content) from within a browser
need web pages that will display and update records from your information systems
need to give one or more staff members access to edit the site
• Basic Requirements
– Web server, server side technology, database server
• Programming Languages
– CGI, Embedded Languages
• Architectures
– LAMP
• Third Party Solutions
– Stand alone applications, Portals, Content Management Systems
10
Basic Requirements
• Web server
– A computer that delivers (serves up) Web pages.
– Any computer can be turned into a Web server by
installing server software and connecting the
machine to the Internet.
– Can use your own web server or a web server
Provided by an Internet Service Provider
11
Web Servers: Apache web server
• Apache web server - The Apache Project is a collaborative
software development effort aimed at creating a robust,
commercial-grade, featureful, and freely-available source code
implementation of an HTTP (Web) server. (Open Source)
• Currently Dominates the web server market
• More Info http://httpd.apache.org/
• Very Secure
• Works on multiple platforms (Windows, Unix)
12
Server side Technologies
• Software that connects two otherwise separate applications.
• There are a number of technologies that link a database system
to a Web server to allow users to request data from the
database using forms displayed on a Web browser,
• Technologies enable the Web server to return dynamic Web
pages based on the user's requests
• In this example we mean programming languages
13
Stand alone languages
• Pattern Extraction and Regular expression Language – PERL
– Especially designed for processing text
– One of the most popular languages for writing CGI scripts
– Common Gateway Interface CGI, a specification for transferring information
between a World Wide Web server and a CGI program
• JAVA,– object oriented
– a general purpose programming language with a number of features that make
the language well suited for use on the World Wide Web
• Python - object oriented
– OpenSource
• All Require Large amounts of programming to output HTML
14
Embedded Languages
• Embedded languages embed code directly with in HTML
• Active Server Pages – ASP
– Works primarily with Microsoft products
– Insert Microsoft Visual Basic into web pages
• Java Server pages - JSP
– An extension to the Java servlet technology
– Preated as an alternative to Microsoft's ASPs
• Coldfusion
– Web pages include tags written in Cold Fusion Markup Language (CFML) that
simplify integration with databases
15
Embedded languages
• PHP: Hypertext Preprocessor - PHP
– Open source
– Similar syntax to that of Perl or C
– In an HTML document, PHP script is enclosed within special PHP tags
author can jump between HTML and PHP (similar to ASP and Cold
Fusion)
– Works on a wide number of platforms
– Work natively with the MySQL DB
– PHP was created in 1994 by Rasmus Lerdorf
– More info: http://www.php.net/
16
Database Servers
• MySQL
– Open source RDBMS that relies on SQL for
processing the data in the database.
– MySQL is most commonly used for Web
applications and embedded applications
– Become a popular alternative to proprietary
database systems because of its speed and
reliability.
– Can run on UNIX, Windows and Mac OS.
– More info http://www.mysql.com/
18
What’s the course?
• Programming in PHP + mySQL
• “But ... I’m not a programmer!”
<?php
echo "Hello World. Today is ".date("l").". ";
?>How are you?
22
All-In-One Pre-Packaged
• WAMP - Windows, Apache, MySQL, and
PHP
• MAMP - Mac, Apache, MySQL, and PHP
• LAMP - Linux, Apache, MySQL, and
PHP
• XAMPP
• Prefer: WAMP
So ... who ARE you?
• from Information Technology and you have
skilled in TECHNOLOGY, equipped with
CREATIVITY and experienced in
PROBLEM SOLVING:
* Analyzing Problems
* Designing and Building Solutions
24
The Goals:
• A dynamic Web application
• PHP language
• mySQL database design and language
• Improve your HTML skills
• Understand and use XML
25
What you’ll learn
Server-side scripting – PHP
Form processing
Cookies + Validation + Regular Expressions
Sessions + Authentication
File processing
Image libraries + APIs
Relational databases / MySQL
SimpleXML
Objects + Classes
Security
26
Two Tier Web Architecture:
Request: HTTP
Client: Web Server:
e. g. FireFox e. g. Apache
On your PC On sulley.dm.ucf.edu
27
Two Tier Web Architecture:
28
Two Tier Web Architecture:HTML
29
Two Tier Web Architecture: PHP
Request: HTTP
Client: Web Server:
e. g. FireFox e. g. Apache
On your PC On sulley.dm.ucf.edu
Response: HTTP/HTML
(or other doctypes:PDF,etc) .php files help Apache
(client doesn’t see PHP) CREATE html
Tagged data
30
Three Tier Web Architecture:MySQL
Request: HTTP
Client: Web Server:
e. g. FireFox e. g. Apache
On your PC On sulley.dm.ucf.edu
Response: HTTP/HTML
(or other doctypes:PDF,etc) .php files ask MySQL
(client doesn’t see PHP) For info; put into
HTML form
Request:SQL
Database Reply:ASCII
Mgt System:
MySQL .frm, .MYD,
.MYI files
31
Three Tier Web Architecture:MySQL
Request: HTTP
Client: Web Server:
e. g. FireFox e. g. Apache
On your PC On sulley.dm.ucf.edu
Response: HTML
(client doesn’t see PHP) .php files ask MySQL
For info; put into
Examples (what they call for:) HTML form
Customer: Request:SQL
- Shopping Cart Database Reply:ASCII
DB Administrator: Mgt System:
- PHPmyAdmin
MySQL .frm, .MYD,
Managers,etc:
- Specialized PHP code .MYI files
32
PHP: A Recursive Definition
Sure they are. But who will punish us, in this case?
33
MySQL:
34
Writing code in this class
www.mamp.info
36
Open Source Software
WampServer
WampServer
• WampServer is a Windows web
development environment. It allows you to
create web applications with Apaache, PHP
and the MySQL database. It also comes
with PHPMyAdmin to easily manage your
databases.
• WampServer installs automatically
(installer), and its usage is very intuitive.
You will be able to tune your server without
even touching the setting files.
WampServer
• WampServer is the only packaged solution
that will .allow you to reproduce your
production server. Once WampServer is
installed, you have the possibility to add as
many Apache, MySQL and PHP releases as
you want.
• WampServer also has a trayicon to manage
your server and its settings.
WampServer
Installing