In this lesson our instructor talks about setting up a development environment. First he discusses remote development, local development, software to install, and XAMPP installation. Then he talks about verifying XAMPP install, localhost, document root, text editor spectrum, finding help, and homework challenge.
A development environment is a setup that allows a programmer to write, test, and
Having a PHP local development environment is when your test webserver runs on
the same machine where you do your PHP coding.
In this course, we will use a local development environment that runs on a
Windows 7 machine using the Firefox web browser, the XAMPP software distribution, and
the PSPad text editor for Windows.
XAMPP is a software distribution that bundles PHP and the Apache webserver, along
with several other pieces of software, that facilitates the setup and configuration
of a PHP-enabled webserver.
PHP version 5.3.5 will be used in this course.
127.0.0.1 is known as the 'loopback’ IP address, and it is used to
refer to a locally running webserver. localhost is the hostname mapped to
the loopback IP address.
The term Document Root refers to the root folder on a hard drive where
files accessible via a webserver are stored. Only files stored in the document root
and its subfolders can be served by a webserver.
For XAMPP, the document root is named htdocs , and it is located in the
root XAMPP installation folder. http://localhost/ maps directly to this
folder in the default XAMPP setup.
Here are links to some additional resources if encounter problems setting up your
PHP development environment:
Lecture Slides are screen-captured images of important points in the lecture. Students can download and print out these lecture slide images to do practice problems as well as take notes while watching the lecture.