Chapter 2-Part 1
Chapter 2-Part 1
Introduction to PHP
Part 1
1.1 Web Development Environment Components
Web Server - A Web server is a program that uses HTTP (Hypertext Transfer Protocol) to serve the files that form
Web pages to users, in response to their requests, which are forwarded by their computers' HTTP clients.
Code Editors - A source code editor is a text editor program designed specifically for editing source code of computer
programs by programmers. It may be a standalone application or it may be built into an integrated development
environment (IDE) or web browser. There are a lot of code editors available on the Internet for free or for a low price.
A database management system (DBMS) is a computer software application that interacts with the user,
other applications, and the database itself to capture and analyze data.
Examples of DBMS:
MySQL
Oracle
SQL Server
MariaDB
“Stacks” are bundles of software that comprise your site’s back end—everything from the operating system
and web servers to APIs and programming frameworks.
Each component provides a layer for their compatibility, and bundling them makes them easier to download
and deploy all at once.
Parts of Software Stack
.
Software stack….
Applications have four tiers, three of which are on the server-side.
This graphic explains the inner workings of a stack: the client is where it all starts and ends.
The business tier—the application server, including the development platform, frameworks,
and server-side programming languages
The database tier—the database server you choose, which can often depend on the
business tier
The tiers each include an operating system, server, database and server-side
scripting
language. You’re not limited to the components in a stack—they’re interchangeable based
on your needs and customizable.
Practical
Part
1.2 Apache Webserver (WAMP) Configuration and Testing
WAMPSERVER
WampServer is a Windows web development environment. It allows you to create web
applications with Apache2, PHP and a MySQL database. Alongside, PhpMyAdmin and
Adminer allows you to manage easily your databases.
http://localhost/
http://localhost/phpmyadmin/
http://localhost/adminer/