INTRODUCTION TO PHP
Ducat India
India’s Most Trusted IT Training School, 100% placement for all courses. Apply Today or follow our page updates.
?<
Web Architecture
Overview of PHP Platform
In other words, it provides a framework which help a user in saving loads of time, stopping the need to produce large repetitive code, instead it allows to build an application rapidly (RAD).
PHP operates on the Model View Controller (MVC) fundamentals.
The architecture consist of two components:
Web Browser
The browser generates user request and passes to the server through different protocol and methods. It is also the one who receives the request from the server. It resides on client machine.
Server
Server is responsible for handling the request. Server can be of different type based on operating system. Server consists of apache server, database and file directory. The function of apache is to search and locate the file if found and then send it to the client.
Additionally the server can be of different types based on operating system:
Wamp
Acronym for Windows Apache MySql and PHP. It is server present in Windows Operating system
LAMP
Acronym for Linux Apache MySql and PHP. It is server present in Linux Operating system
MAMP
Acronym for Mac OS Apache MySql and PHP. It is server present in Mac OS Operating system
XAMP
It is cross platform server present in different Operating system.
The working principle of this architecture is described in following steps:
Origins of PHP in the open source community
PHP was designed by a developer Rasmus Lerdorf in 1994. It earlier stands for personal home page which now refers to as hypertext pre-processor. The very first version of PHP was a simple set of Common Gateway Interface (CGI) written in C programming language. CGI technology allows user to submit forms in a web browser and interact with programs on the server.
Over a period of time, more functionality was required in PHP to make it much larger and richer application. So, keeping that in mind a new model was designed which was capable of database interaction, providing a framework to users where they could easily develop simple dynamic web applications. Later in June 1995, Rasmus released the source code of PHP tools to the public, which allowed developers not only to use it but he also encouraged them to provide fixes for bugs in the code, and to generally improve upon it.
Why we use PHP?
There are many reasons to use?PHP . Let us discuss some of them below:
领英推荐
Some of PHP’s strengths
There are many sever side scripting languages which is used for web development. But among all of them PHP is the most popular web scripting language. So, let us find out why PHP is widely used among all.
It is available with documentation in many languages which makes user understand easily. PHP can be easily embedded directly into a HTML document.
Installing PHP
We have already discussed it in advantages that PHP is portable or platform independent, which means it can run on many platforms, including Windows, Linux, MAC OSX etc. Let us see the steps to install PHP on Windows systems using XAMPP software suite.
Here are steps to install PHP on Windows machine.
Summary
The points below summarize the topics discussed: