Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Unit-7 Advanced Web Programming concepts (1).pptx
1. Advanced web programming
concepts
Unit-7
Mrs. Kinjal Parmar
Assistant Professor
Computer Department(04)
ADIT, New V. V. Nagar
Contact:(+91)8160251841
A. D. Patel Institute of Technology
CVM University
2. Database programming with PHP and MySQL
2
• Asynchronous Web Programming
• Difference between synchronous and asynchronous web programming
• AJAX, and Jquery
• Web service and API development usingPHP
3. Asynchronous Web Programming
3
Asynchronous programming is a technique that enables your program to start a potentially long-
running task, and then rather than having to wait until that task has finished, to be able to
continue to be responsive to other events while the task runs. Once the task is completed, your
program is presented with the result.
4. Synchronous and Asynchronous web programming
4
• when a server that runs synchronously gets 2
requests, it handles them one by one. The server
is searching data in a database for request 1 and
request 2 is waiting.
• in an asynchronous server, it is searching for
data in the background. In the meantime, the
server starts working on request 2. When the
server finds data from the database, it sends a
response for request 1. That’s why it is taking
very little time than the previous server.
5. AJAX
5
AJAX stands for Asynchronous JavaScript and XML.
AJAX is not a technology in itself, it describes a "new" approach to using a number of existing
technologies together, including HTML or XHTML, CSS, JavaScript, DOM, XML, XSLT, and most
importantly the XMLHttpRequest object.
When these technologies are combined in the Ajax model, web applications are able to make quick,
incremental updates to the user interface without reloading the entire web page.
This makes the application faster and more responsive to user actions.
Although X in Ajax stands for XML, JSON is used more than XML nowadays because of its many
advantages such as being lighter and a part of JavaScript.
6. Web Services & API
6
What is Web Services?
A Web service is a way for two machines to communicate with each other over a network.
A web server running on a computer listens for requests from other computers. When a request
from another computer is received, over a network, the Web service returns the requested
resources. This resource could be JSON, XML, an HTML file, Images, Audio Files, etc.
What is anAPI?
An Application Programming Interface, is a set of definitions and protocols that allow one
application to communicate with another application.
8. Basic Terminology
8
XML [eXtensible Markup Language] is a standardized format for storing and sending data. Similar to HTML,
XML stores data by wrapping it in descriptive tags.
JSON [JavaScript Object Notation] is similar to XML in that it also stores and enables you to send data in a
standardized format. JSON just uses a different, object-based, methodology for systematically storing data.
HTTP [HyperText Transfer Protocol] is the foundation of transferring data and communications on the internet.
is a messaging protocol used for exchanging structured information[XML data] over a network.
REST [REpresentational State Transfer] is a standardized architectural style that can be used when creating a web
API.
Web applications (Web app) are computer programs that are accessed over the internet through a computer’s web
browser.