Easy-to-follow video tutorials help you learn software, creative, and business skills.Become a member
Let's take a look at the difference between a static page request and a dynamic page request. And based on that information I can explain the type of environment we're going to set up as our testing environment. I have these out on my website in case you want to look at them again later. So well start with a static page request and it's a pretty simple process here. We have a client. Don't you just love this old fashioned computer with the two floppy drives? Anyway, I keep it up here for old times sake, anyway, then we have a client computer, with a browser located inside of it. That browser makes a request to a Web Server, somewhere out on the Internet. This Web Server could even be sitting on the same machine as the client. So we make an HTTP request, and the server sends it back. This is a pure HTML environment.
Web servers don't speak any other language than HTML. So, it's pretty simple not difficult to set up at all. What do we need to add if we're going to work in the dynamic environment. Well, there's a whole other side to a page request. So what we add is this piece here. We have an Application Server. And in order to work with that there are five different languages you can work in. We have chosen PHP. It's one of the more common environments.
There is no fee to set up the testing environment. And we can download it all as a single package. With the Web Server the Application Server and the Database all included in a single install. The download is just a single file how you install them is quite different between the Mac and the PC. Once their installed there isn't much difference so our Web Server over here speaks HTML. So what happens with a Web Server if it gets a PHP request. Well what it does is passes it on to the PHP environment and that PHP environment is what makes request of the database.
A Web Server can not talk directly to a database, because it doesn't speak database language. So we're now involved in three different pieces in a dynamic page request. In order to get a form working, we need to create an action page, and we can't do that in HTML. That is why we need to add the PHP piece. Because PHP will process that information and take care of that form action page. So that's the difference between a dynamic page request and a static page request.
So what we need to do is set up this environment here. And when we go to install that we're actually installing all three pieces at the same time. So PHP will come in, and that's a side that we'll be processing our form information. So let's get on with the installation of this environment, using Zamp on the PC side, and Mamp on the Mac side.
Get unlimited access to all courses for just $25/month.Become a member