Discover millions of ebooks, audiobooks, and so much more with a free trial

Only $11.99/month after trial. Cancel anytime.

Introduction to PHP Web Services: PHP, JavaScript, MySQL, SOAP, RESTful, JSON, XML, WSDL
Introduction to PHP Web Services: PHP, JavaScript, MySQL, SOAP, RESTful, JSON, XML, WSDL
Introduction to PHP Web Services: PHP, JavaScript, MySQL, SOAP, RESTful, JSON, XML, WSDL
Ebook163 pages1 hour

Introduction to PHP Web Services: PHP, JavaScript, MySQL, SOAP, RESTful, JSON, XML, WSDL

Rating: 0 out of 5 stars

()

Read preview

About this ebook

This book covers latest topics including RESTful, RPC, SOAP, Microservices, Webhook, WSDL and more. I've provided working examples with code throughout the book. The code and examples are in PHP, JavaScript, JSON, XML, MySQL and WSDL. Each example has screen shot output so that you could match your output with the correct output I provide.

I chose PHP to write this book because PHP is ready to develop RESTful and SOAP webservices. PHP is platform independent and widely used in developing data-driven Websites.
LanguageEnglish
PublishereBookIt.com
Release dateJan 14, 2019
ISBN9781456632656
Introduction to PHP Web Services: PHP, JavaScript, MySQL, SOAP, RESTful, JSON, XML, WSDL

Related to Introduction to PHP Web Services

Related ebooks

Internet & Web For You

View More

Related articles

Reviews for Introduction to PHP Web Services

Rating: 0 out of 5 stars
0 ratings

0 ratings0 reviews

What did you think?

Tap to rate

Review must be at least 10 words

    Book preview

    Introduction to PHP Web Services - Imran Ghani

    Registry

    Preface

    These days, web services technology is very important and quite convenient. I have taught web services course at the undergraduate level. While teaching web services at the undergraduate level, I realized that there is a lack of a textbook that is easy to understand for students and beginners. Indeed, there are a number of books available on this topic, but those books are more high-level books mostly written by developers for developers. They lack details and students or beginners have no choice but to spend a lot of time searching on Google to understand the basics concepts. During a single semester, it is hard for students to spend too much time on the internet. Therefore, I thought it would be useful to sit and write a book that is easy to understand for undergraduate students and beginners.

    The book mainly covers RESTful, RPC, and SOAP concepts. I provide working examples with code throughout the book. The code and examples are in PHP, JavaScript, JSON, XML, MySQL, and WSDL. Each example has its associated screenshots, so that you could match your output with the correct output I provide.

    The book has ten chapters that cover the latest topics including HTTP verbs, Microservices, Webhook, WSDL, and others.

    I chose PHP to write this book because PHP is ready to develop RESTful and SOAP web services. PHP is platform-independent and widely used in developing data-driven websites. In addition, I worked as a PHP developer for more than five years and have good hands-on coding in this language.

    I hope this book will help undergraduate students and beginners understand the state-of-the-art concepts in RESTful and SOAP web services.

    Code for Instructors: If you are an instructor and want all the code used in the book, please send an email to imransaieen@gmail.com using your official email address. In your email, please mention name of your institute along with your official web page where your information is provided.

    Chapter One

    Basics of PHP and MySQL

    Traditional Website Model: Human-to-Machine (H2M) Communication

    A traditional website model is dependent on human interaction. It is based on client-server architecture, which usually has three-tier architecture involving client, web server, and database as shown in Figure 1.1.

    Figure 1.1: Traditional three-tier web architecture

    It means that usually a human initiates the actions. For example, if you (as a user) want to search for good food in your town, then you will have to key-in certain words in Google or in any other front-end website using Chrome/IE (client), for example. The browser will send your search request to a web server (Apache, IIS etc.) to the back-end. The web server will process the request using PHP, ASP.NET or other languages. Then, the request is sent to a database engine (MySQL, SQL Server etc.). If the database has the location of the restaurant in its records, it will return the result to the web server that will ultimately return the response to your browser. This communication takes place using HTTP/HTTPS protocol. In some applications, SMTP or FTP is also used behind the scenes. This process is shown in the following Figure 1.2.

    It involves these components as follows:

    Client: A human user with a browser such as Chrome, IE, or others

    Web server: Such as Apache, IIS, Nginx, Xitami, or others

    Database: Such as MySQL, SQL Server, NoSQL, Oracle, or others

    Figure 1.2: Client-Server communication

    Before going deeper into web services, I think it is appropriate to discuss and create a simple website using HTML, PHP, and MySQL. This would help those who have never created a website using PHP and MySQL.

    Your First PHP and MySQL Website

    Let’s create your first PHP and MySQL website. Before we create your first PHP website, we need to install XAMPP or WAMP. To do so, follow these steps to start:

    If you have Windows on your laptop or PC, then download XAMPP and install it in your C: drive: In this book, I will show you examples using Windows. I have installed XAMPP v3.2.2 on my Windows PC.

    a. Download XAMPP from

    Enjoying the preview?
    Page 1 of 1