SlideShare a Scribd company logo
1 of 36
Download to read offline
Lecturer:
M.Zalmai “Rahmani”
rahmani.zalmai@gmail.com
Web Programming II
Lecture 0
Introduction
Azma Institute
Database Department
What is Web?
 The Web is a network of computers all over the world.
 All the computers in the Web can communicate with each other.
 All the computers use a communication standard called HTTP (The
Hypertext Transfer Protocol (HTTP) is an application protocol for distributed,
collaborative, hypermedia information systems. HTTP is the foundation of data
communication for the World Wide Web. Hypertext is structured text that uses
logical links (hyperlinks) between nodes containing text.).
How does the WWW work?
Web information is stored in documents called web pages.
Web pages are files stored on computers called web servers.
Computers reading the web pages are called web clients.
Web clients view the pages with a program called a web browser.
How does a Browser Fetch
a Web Page?
A browser fetches a page from a web server by a request.
A request is a standard HTTP request containing a page address.
An address may look like this:
http://www.someone.com/page.htm.
How does a Browser Display
a Web Page?
All web pages contain instructions for display
The browser displays the page by reading these instructions.
The most common display instructions are called HTML tags.
HTML tags look like this <p>This is a Paragraph</p>.
What is a URL?
A URL, or Uniform Resource Locator, is the location of a file on the Web.
When you type the address of a Web page into your browser,you are typing
a URL.
The most common format of a URL:
http://www.cites.uiuc.edu/101/url101.html
http://www.cites.uiuc.edu/101/url101.html.
Protocol HOST The directory structure and filename
What is Engineering???
The profession of applying scientific principles to the design,
construction, and maintenance of systems to reduce cost, and have
good quality.
The main components are:
Time
 Cost
 quality
What is Web Engineering???
Web Engineering is the application of systematic and quantifiable
approaches (concepts, methods, techniques, tools) to cost-effective
requirements analysis, design, implementation, testing, operation, and
maintenance of high-quality Web applications.
Prerequisite for this course
Web Engineering I
Web development concept
Web designing and technologies
Build basic web application projects
Information About: URL, HTML, CSS, Forms,
JavaScript, XML, Jquery
Objectives
Convert astatic site to a dynamic one using PHP
Remove inefficient duplicate code
Use MySQLi and prepared statements for secure database queries
Manipulate page content immediately with jQuery
Update the database silently with jQuery AJAX
Upload the project to a web host and deal with important security
considerations.
Contents
Introducing PHP and MySQL
Using Variables, Statements, and Operators
Using Variables, Statements, and Operators
Using Arrays and Custom Functions
Using Files, Sessions and Cookies
Sample Application: ???
Contents
The students are required to study the text material for the whole
course content to be able to carry out all the workload.
Contents
The students are required to study the text material for the whole
course content to be able to carry out all the workload.
Lecturer:
M.Zalmai “Rahmani”
rahmani.ralmai@gmail.com
Web Programming II
Lecture 01
Introduction
Azma Institute
Database Department
Clint Server Model
Setup Environment
Clint Server Model
CLIENT
WEB
SERVER
HTTP Request
(url)
<HTML>
<?php PHP code ?>
</HTML>
Gets Page
Server response
Browser creates
the web page
Hello
Clint Server Model
Client
Web
browser
OS
requests an Internet
resource by
specifying a URL and
providing input via HTTP
encoded strings
HTML supports JavaScript, DOM, CSS, HTML Events
Usually we want to open an HTML file from some website, but
we can also open a program alternatively.
Client Server Model
Client
Web
browser
Operating
System
(OS)
Web server
Operating
System
(OS)
Server
Internet
Server-side program
works out the necessary
business logic and
dynamically builds an
HTML response.
Client Server Model
Client
Web
browser
OS
Web
server
OS
Server
Internet
Server-side program
sends back output as
HTML using HTTP as
transport mechanism
Client Server Model
Client
Web
browser
OS
Web
server
OS
Server
Internet
Client-side program (Internet Explorer,
Firefox) displays the HTML output
• HTML text
• Graphics
• Streaming video/audio
• XML
Client Server Model
Client
Web
browser
Web
server HTML
Server
MySQL
Operating System
PHP
Internet
My codes
Our codes might be embedded into an HTML, or vice-versa.
It may generate an HTML on its own as well.
Setup Environment
 Available Packages
 WAMP Server
Windows OS
 MAMP Server
Mac OS
 XAMP
Linux and Windows OS
 You will be able to tune your server without even
touching the setting files.
 WAMP (Windows Apache MySQL PHP/PHPMyAdmin)
Wamp Server Installation
 WAMP Server is a Windows web development environment.
 It allows you to create web applications with
 Apache
 PHP
 MySQL database.
 It also comes with PHPMyAdmin to easily manage your databases.
Wamp Server Installation
Tray Icon
 Manage your Apache and MySQL services
 Switch online/offline (give access to everyone or only localhost)
 Install and switch Apache, MySQL and PHP releases
 Manage your servers settings
 Access your logs
 Access your settings files
 Create alias
Wamp Server Installation
Tray Icon
 Manage your Apache and MySQL services
 Switch online/offline (give access to
everyone or only localhost)
 Install and switch Apache, MySQL and PHP
releases
 Manage your servers settings
 Access your logs
 Access your settings files
 Create alias
Step by Step Installation
 http://www.en.wampserver.com/
 Once you have downloaded the latest version of WAMP
 2.2 or 2.5, follows these steps to install it to your local PC:
 Locate the downloaded set up file and double-click on it.
 You will be faced with an alert window warning for
 installation. Click on Yes to continue
Step by Step Installation
 The Welcome setup window will load. Click on Next to proceed
Step by Step Installation
 On the License Agreement screen select the radio button for I accept
the agreement then click on Next
Step by Step Installation
 The Select Destination Location screen will load. Change the default
location if you desire then click on Next
Step by Step Installation
 Now the Select Additional Tasks screen is loaded. Select the checkboxes for any
icons you want installing then click on Next
Step by Step Installation
 You will be faced with the Ready to Install screen. Review the settings
and use the Back button to go back and change any of the settings. If
the settings are correct, click on Install to install WAMP 2.2/2.5
Step by Step Installation
 The PHP mail parameters screen will load. Review the default settings and
change accordingly then click on Next. The default values can generally be used
when installing WAMP 2.2/2.5 to a local PC
Step by Step Installation
 WAMP 2.2 is started. The WAMP Server icon is loaded onto the
system tray. Should turn totally GREEN
How to Start
When you install WAMP Server, a "www" directory is created
(generally C:wampwww).
Create a directory inside for your project and put your PHP
 files in it.
Click on the link "Localhost" in the WAMP Server Tray Icon menu or
open your browser and open the http://localhost address.
http://localhost
Web Programming

More Related Content

What's hot

Pace web server access 2013
Pace web server access 2013Pace web server access 2013
Pace web server access 2013Seidenberg
 
Web Application Development Fundamentals
Web Application Development FundamentalsWeb Application Development Fundamentals
Web Application Development FundamentalsMohammed Makhlouf
 
Basic Introduction to Web Development
Basic Introduction to Web DevelopmentBasic Introduction to Web Development
Basic Introduction to Web DevelopmentBurhan Khalid
 
Basic Web Design In Dreamweaver
Basic Web Design In DreamweaverBasic Web Design In Dreamweaver
Basic Web Design In Dreamweaverjcharnin
 
Asp.net With mvc handson
Asp.net With mvc handsonAsp.net With mvc handson
Asp.net With mvc handsonPrashant Kumar
 
Php hypertext Preprocessor
Php hypertext PreprocessorPhp hypertext Preprocessor
Php hypertext PreprocessorMrsRLakshmiIT
 
Web Application Development Process presented by @Cygnismedia
Web Application Development Process presented by @CygnismediaWeb Application Development Process presented by @Cygnismedia
Web Application Development Process presented by @CygnismediaClark Davidson
 
email clients and webmail (presentation)
email clients and webmail   (presentation)email clients and webmail   (presentation)
email clients and webmail (presentation)kay2
 
Multi Lingual Websites In Umbraco
Multi Lingual Websites In UmbracoMulti Lingual Websites In Umbraco
Multi Lingual Websites In UmbracoPaul Marden
 
Word press maintenance mode after upgrade
Word press maintenance mode after upgradeWord press maintenance mode after upgrade
Word press maintenance mode after upgradeJitesh Dhamniya
 

What's hot (17)

Joomlapresent
JoomlapresentJoomlapresent
Joomlapresent
 
Pace web server access 2013
Pace web server access 2013Pace web server access 2013
Pace web server access 2013
 
Web Application Development Fundamentals
Web Application Development FundamentalsWeb Application Development Fundamentals
Web Application Development Fundamentals
 
Web browsers and web document
Web browsers and web documentWeb browsers and web document
Web browsers and web document
 
Static web documents
Static web documents Static web documents
Static web documents
 
Basic Introduction to Web Development
Basic Introduction to Web DevelopmentBasic Introduction to Web Development
Basic Introduction to Web Development
 
Basic Web Design In Dreamweaver
Basic Web Design In DreamweaverBasic Web Design In Dreamweaver
Basic Web Design In Dreamweaver
 
Asp.net With mvc handson
Asp.net With mvc handsonAsp.net With mvc handson
Asp.net With mvc handson
 
Word press 01
Word press 01Word press 01
Word press 01
 
Presentation 2
Presentation 2Presentation 2
Presentation 2
 
Asp.net,mvc
Asp.net,mvcAsp.net,mvc
Asp.net,mvc
 
Php hypertext Preprocessor
Php hypertext PreprocessorPhp hypertext Preprocessor
Php hypertext Preprocessor
 
Web Application Development Process presented by @Cygnismedia
Web Application Development Process presented by @CygnismediaWeb Application Development Process presented by @Cygnismedia
Web Application Development Process presented by @Cygnismedia
 
email clients and webmail (presentation)
email clients and webmail   (presentation)email clients and webmail   (presentation)
email clients and webmail (presentation)
 
Multi Lingual Websites In Umbraco
Multi Lingual Websites In UmbracoMulti Lingual Websites In Umbraco
Multi Lingual Websites In Umbraco
 
Word press maintenance mode after upgrade
Word press maintenance mode after upgradeWord press maintenance mode after upgrade
Word press maintenance mode after upgrade
 
Web Server Primer
Web Server PrimerWeb Server Primer
Web Server Primer
 

Similar to Web Programming

Purpose and principles of web server and application server
Purpose and principles of web server and application serverPurpose and principles of web server and application server
Purpose and principles of web server and application serverJames Brown
 
Web Applications - Behind the Scenes + Open Source Examples
Web Applications - Behind the Scenes + Open Source ExamplesWeb Applications - Behind the Scenes + Open Source Examples
Web Applications - Behind the Scenes + Open Source ExamplesRichard Peter Ong
 
Web engineering 2(lect 0)
Web engineering 2(lect 0)Web engineering 2(lect 0)
Web engineering 2(lect 0)Roohul Amin
 
Web Server Hardware and Software
Web Server Hardware and SoftwareWeb Server Hardware and Software
Web Server Hardware and Softwarewebhostingguy
 
DevNext - Web Programming Concepts Using Asp Net
DevNext - Web Programming Concepts Using Asp NetDevNext - Web Programming Concepts Using Asp Net
DevNext - Web Programming Concepts Using Asp NetAdil Mughal
 
webdevelopmentppt-210923044639 (1).pptx
webdevelopmentppt-210923044639 (1).pptxwebdevelopmentppt-210923044639 (1).pptx
webdevelopmentppt-210923044639 (1).pptxlearnEnglish51
 
Making Of PHP Based Web Application
Making Of PHP Based Web ApplicationMaking Of PHP Based Web Application
Making Of PHP Based Web ApplicationSachin Walvekar
 
Front End Lecture 1.pptx
Front End Lecture 1.pptxFront End Lecture 1.pptx
Front End Lecture 1.pptxmalise2997
 
Week 1
Week 1Week 1
Week 1A VD
 
Online fast food django.docx
Online fast food django.docxOnline fast food django.docx
Online fast food django.docxvidhi184862
 
Web Development Today
Web Development TodayWeb Development Today
Web Development Todaybretticus
 
Web Development Presentation
Web Development PresentationWeb Development Presentation
Web Development PresentationTurnToTech
 
Workshop HTML5+PhoneGap by Ivano Malavolta
Workshop HTML5+PhoneGap by Ivano Malavolta Workshop HTML5+PhoneGap by Ivano Malavolta
Workshop HTML5+PhoneGap by Ivano Malavolta Commit University
 
Server Side Programming
Server Side ProgrammingServer Side Programming
Server Side ProgrammingMilan Thapa
 
Les Basiques - Web Développement HTML5, CSS3, JS et PHP
Les Basiques - Web  Développement HTML5, CSS3, JS et PHPLes Basiques - Web  Développement HTML5, CSS3, JS et PHP
Les Basiques - Web Développement HTML5, CSS3, JS et PHPHamdi Hmidi
 

Similar to Web Programming (20)

Purpose and principles of web server and application server
Purpose and principles of web server and application serverPurpose and principles of web server and application server
Purpose and principles of web server and application server
 
Web Applications - Behind the Scenes + Open Source Examples
Web Applications - Behind the Scenes + Open Source ExamplesWeb Applications - Behind the Scenes + Open Source Examples
Web Applications - Behind the Scenes + Open Source Examples
 
Web engineering 2(lect 0)
Web engineering 2(lect 0)Web engineering 2(lect 0)
Web engineering 2(lect 0)
 
Web Server Hardware and Software
Web Server Hardware and SoftwareWeb Server Hardware and Software
Web Server Hardware and Software
 
DevNext - Web Programming Concepts Using Asp Net
DevNext - Web Programming Concepts Using Asp NetDevNext - Web Programming Concepts Using Asp Net
DevNext - Web Programming Concepts Using Asp Net
 
webdevelopmentppt-210923044639 (1).pptx
webdevelopmentppt-210923044639 (1).pptxwebdevelopmentppt-210923044639 (1).pptx
webdevelopmentppt-210923044639 (1).pptx
 
Making Of PHP Based Web Application
Making Of PHP Based Web ApplicationMaking Of PHP Based Web Application
Making Of PHP Based Web Application
 
Front End Lecture 1.pptx
Front End Lecture 1.pptxFront End Lecture 1.pptx
Front End Lecture 1.pptx
 
Cs2305 nol
Cs2305 nolCs2305 nol
Cs2305 nol
 
My Saminar On Php
My Saminar On PhpMy Saminar On Php
My Saminar On Php
 
Week 1
Week 1Week 1
Week 1
 
Online fast food django.docx
Online fast food django.docxOnline fast food django.docx
Online fast food django.docx
 
Ayanava cv latest
Ayanava cv latestAyanava cv latest
Ayanava cv latest
 
Ayanava cv latest
Ayanava cv latestAyanava cv latest
Ayanava cv latest
 
Web Development Today
Web Development TodayWeb Development Today
Web Development Today
 
Web Development Presentation
Web Development PresentationWeb Development Presentation
Web Development Presentation
 
Workshop HTML5+PhoneGap by Ivano Malavolta
Workshop HTML5+PhoneGap by Ivano Malavolta Workshop HTML5+PhoneGap by Ivano Malavolta
Workshop HTML5+PhoneGap by Ivano Malavolta
 
Server Side Programming
Server Side ProgrammingServer Side Programming
Server Side Programming
 
Web Server Primer
Web Server PrimerWeb Server Primer
Web Server Primer
 
Les Basiques - Web Développement HTML5, CSS3, JS et PHP
Les Basiques - Web  Développement HTML5, CSS3, JS et PHPLes Basiques - Web  Développement HTML5, CSS3, JS et PHP
Les Basiques - Web Développement HTML5, CSS3, JS et PHP
 

Recently uploaded

Hand gesture recognition PROJECT PPT.pptx
Hand gesture recognition PROJECT PPT.pptxHand gesture recognition PROJECT PPT.pptx
Hand gesture recognition PROJECT PPT.pptxbodapatigopi8531
 
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...ICS
 
5 Signs You Need a Fashion PLM Software.pdf
5 Signs You Need a Fashion PLM Software.pdf5 Signs You Need a Fashion PLM Software.pdf
5 Signs You Need a Fashion PLM Software.pdfWave PLM
 
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...MyIntelliSource, Inc.
 
Right Money Management App For Your Financial Goals
Right Money Management App For Your Financial GoalsRight Money Management App For Your Financial Goals
Right Money Management App For Your Financial GoalsJhone kinadey
 
Software Quality Assurance Interview Questions
Software Quality Assurance Interview QuestionsSoftware Quality Assurance Interview Questions
Software Quality Assurance Interview QuestionsArshad QA
 
The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdfThe Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdfkalichargn70th171
 
How To Troubleshoot Collaboration Apps for the Modern Connected Worker
How To Troubleshoot Collaboration Apps for the Modern Connected WorkerHow To Troubleshoot Collaboration Apps for the Modern Connected Worker
How To Troubleshoot Collaboration Apps for the Modern Connected WorkerThousandEyes
 
CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online ☂️
CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online  ☂️CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online  ☂️
CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online ☂️anilsa9823
 
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...panagenda
 
HR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.comHR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.comFatema Valibhai
 
SyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AI
SyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AISyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AI
SyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AIABDERRAOUF MEHENNI
 
CALL ON ➥8923113531 🔝Call Girls Badshah Nagar Lucknow best Female service
CALL ON ➥8923113531 🔝Call Girls Badshah Nagar Lucknow best Female serviceCALL ON ➥8923113531 🔝Call Girls Badshah Nagar Lucknow best Female service
CALL ON ➥8923113531 🔝Call Girls Badshah Nagar Lucknow best Female serviceanilsa9823
 
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️Delhi Call girls
 
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...Health
 
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdfLearn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdfkalichargn70th171
 
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...Steffen Staab
 
How To Use Server-Side Rendering with Nuxt.js
How To Use Server-Side Rendering with Nuxt.jsHow To Use Server-Side Rendering with Nuxt.js
How To Use Server-Side Rendering with Nuxt.jsAndolasoft Inc
 

Recently uploaded (20)

Hand gesture recognition PROJECT PPT.pptx
Hand gesture recognition PROJECT PPT.pptxHand gesture recognition PROJECT PPT.pptx
Hand gesture recognition PROJECT PPT.pptx
 
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
 
Vip Call Girls Noida ➡️ Delhi ➡️ 9999965857 No Advance 24HRS Live
Vip Call Girls Noida ➡️ Delhi ➡️ 9999965857 No Advance 24HRS LiveVip Call Girls Noida ➡️ Delhi ➡️ 9999965857 No Advance 24HRS Live
Vip Call Girls Noida ➡️ Delhi ➡️ 9999965857 No Advance 24HRS Live
 
5 Signs You Need a Fashion PLM Software.pdf
5 Signs You Need a Fashion PLM Software.pdf5 Signs You Need a Fashion PLM Software.pdf
5 Signs You Need a Fashion PLM Software.pdf
 
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
 
Right Money Management App For Your Financial Goals
Right Money Management App For Your Financial GoalsRight Money Management App For Your Financial Goals
Right Money Management App For Your Financial Goals
 
Software Quality Assurance Interview Questions
Software Quality Assurance Interview QuestionsSoftware Quality Assurance Interview Questions
Software Quality Assurance Interview Questions
 
The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdfThe Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
 
How To Troubleshoot Collaboration Apps for the Modern Connected Worker
How To Troubleshoot Collaboration Apps for the Modern Connected WorkerHow To Troubleshoot Collaboration Apps for the Modern Connected Worker
How To Troubleshoot Collaboration Apps for the Modern Connected Worker
 
CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online ☂️
CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online  ☂️CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online  ☂️
CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online ☂️
 
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
 
HR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.comHR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.com
 
SyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AI
SyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AISyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AI
SyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AI
 
CALL ON ➥8923113531 🔝Call Girls Badshah Nagar Lucknow best Female service
CALL ON ➥8923113531 🔝Call Girls Badshah Nagar Lucknow best Female serviceCALL ON ➥8923113531 🔝Call Girls Badshah Nagar Lucknow best Female service
CALL ON ➥8923113531 🔝Call Girls Badshah Nagar Lucknow best Female service
 
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
 
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
 
Microsoft AI Transformation Partner Playbook.pdf
Microsoft AI Transformation Partner Playbook.pdfMicrosoft AI Transformation Partner Playbook.pdf
Microsoft AI Transformation Partner Playbook.pdf
 
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdfLearn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
 
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
 
How To Use Server-Side Rendering with Nuxt.js
How To Use Server-Side Rendering with Nuxt.jsHow To Use Server-Side Rendering with Nuxt.js
How To Use Server-Side Rendering with Nuxt.js
 

Web Programming

  • 1. Lecturer: M.Zalmai “Rahmani” rahmani.zalmai@gmail.com Web Programming II Lecture 0 Introduction Azma Institute Database Department
  • 2. What is Web?  The Web is a network of computers all over the world.  All the computers in the Web can communicate with each other.  All the computers use a communication standard called HTTP (The Hypertext Transfer Protocol (HTTP) is an application protocol for distributed, collaborative, hypermedia information systems. HTTP is the foundation of data communication for the World Wide Web. Hypertext is structured text that uses logical links (hyperlinks) between nodes containing text.).
  • 3. How does the WWW work? Web information is stored in documents called web pages. Web pages are files stored on computers called web servers. Computers reading the web pages are called web clients. Web clients view the pages with a program called a web browser.
  • 4. How does a Browser Fetch a Web Page? A browser fetches a page from a web server by a request. A request is a standard HTTP request containing a page address. An address may look like this: http://www.someone.com/page.htm.
  • 5. How does a Browser Display a Web Page? All web pages contain instructions for display The browser displays the page by reading these instructions. The most common display instructions are called HTML tags. HTML tags look like this <p>This is a Paragraph</p>.
  • 6. What is a URL? A URL, or Uniform Resource Locator, is the location of a file on the Web. When you type the address of a Web page into your browser,you are typing a URL. The most common format of a URL: http://www.cites.uiuc.edu/101/url101.html http://www.cites.uiuc.edu/101/url101.html. Protocol HOST The directory structure and filename
  • 7. What is Engineering??? The profession of applying scientific principles to the design, construction, and maintenance of systems to reduce cost, and have good quality. The main components are: Time  Cost  quality
  • 8. What is Web Engineering??? Web Engineering is the application of systematic and quantifiable approaches (concepts, methods, techniques, tools) to cost-effective requirements analysis, design, implementation, testing, operation, and maintenance of high-quality Web applications.
  • 9. Prerequisite for this course Web Engineering I Web development concept Web designing and technologies Build basic web application projects Information About: URL, HTML, CSS, Forms, JavaScript, XML, Jquery
  • 10. Objectives Convert astatic site to a dynamic one using PHP Remove inefficient duplicate code Use MySQLi and prepared statements for secure database queries Manipulate page content immediately with jQuery Update the database silently with jQuery AJAX Upload the project to a web host and deal with important security considerations.
  • 11. Contents Introducing PHP and MySQL Using Variables, Statements, and Operators Using Variables, Statements, and Operators Using Arrays and Custom Functions Using Files, Sessions and Cookies Sample Application: ???
  • 12. Contents The students are required to study the text material for the whole course content to be able to carry out all the workload.
  • 13. Contents The students are required to study the text material for the whole course content to be able to carry out all the workload.
  • 14. Lecturer: M.Zalmai “Rahmani” rahmani.ralmai@gmail.com Web Programming II Lecture 01 Introduction Azma Institute Database Department
  • 16. Clint Server Model CLIENT WEB SERVER HTTP Request (url) <HTML> <?php PHP code ?> </HTML> Gets Page Server response Browser creates the web page Hello
  • 17. Clint Server Model Client Web browser OS requests an Internet resource by specifying a URL and providing input via HTTP encoded strings HTML supports JavaScript, DOM, CSS, HTML Events Usually we want to open an HTML file from some website, but we can also open a program alternatively.
  • 18. Client Server Model Client Web browser Operating System (OS) Web server Operating System (OS) Server Internet Server-side program works out the necessary business logic and dynamically builds an HTML response.
  • 19. Client Server Model Client Web browser OS Web server OS Server Internet Server-side program sends back output as HTML using HTTP as transport mechanism
  • 20. Client Server Model Client Web browser OS Web server OS Server Internet Client-side program (Internet Explorer, Firefox) displays the HTML output • HTML text • Graphics • Streaming video/audio • XML
  • 21. Client Server Model Client Web browser Web server HTML Server MySQL Operating System PHP Internet My codes Our codes might be embedded into an HTML, or vice-versa. It may generate an HTML on its own as well.
  • 22. Setup Environment  Available Packages  WAMP Server Windows OS  MAMP Server Mac OS  XAMP Linux and Windows OS  You will be able to tune your server without even touching the setting files.  WAMP (Windows Apache MySQL PHP/PHPMyAdmin)
  • 23. Wamp Server Installation  WAMP Server is a Windows web development environment.  It allows you to create web applications with  Apache  PHP  MySQL database.  It also comes with PHPMyAdmin to easily manage your databases.
  • 24. Wamp Server Installation Tray Icon  Manage your Apache and MySQL services  Switch online/offline (give access to everyone or only localhost)  Install and switch Apache, MySQL and PHP releases  Manage your servers settings  Access your logs  Access your settings files  Create alias
  • 25. Wamp Server Installation Tray Icon  Manage your Apache and MySQL services  Switch online/offline (give access to everyone or only localhost)  Install and switch Apache, MySQL and PHP releases  Manage your servers settings  Access your logs  Access your settings files  Create alias
  • 26. Step by Step Installation  http://www.en.wampserver.com/  Once you have downloaded the latest version of WAMP  2.2 or 2.5, follows these steps to install it to your local PC:  Locate the downloaded set up file and double-click on it.  You will be faced with an alert window warning for  installation. Click on Yes to continue
  • 27. Step by Step Installation  The Welcome setup window will load. Click on Next to proceed
  • 28. Step by Step Installation  On the License Agreement screen select the radio button for I accept the agreement then click on Next
  • 29. Step by Step Installation  The Select Destination Location screen will load. Change the default location if you desire then click on Next
  • 30. Step by Step Installation  Now the Select Additional Tasks screen is loaded. Select the checkboxes for any icons you want installing then click on Next
  • 31. Step by Step Installation  You will be faced with the Ready to Install screen. Review the settings and use the Back button to go back and change any of the settings. If the settings are correct, click on Install to install WAMP 2.2/2.5
  • 32. Step by Step Installation  The PHP mail parameters screen will load. Review the default settings and change accordingly then click on Next. The default values can generally be used when installing WAMP 2.2/2.5 to a local PC
  • 33. Step by Step Installation  WAMP 2.2 is started. The WAMP Server icon is loaded onto the system tray. Should turn totally GREEN
  • 34. How to Start When you install WAMP Server, a "www" directory is created (generally C:wampwww). Create a directory inside for your project and put your PHP  files in it. Click on the link "Localhost" in the WAMP Server Tray Icon menu or open your browser and open the http://localhost address.