New Feature: Playlist Center! Pick a topic and let our playlists guide the way.

Easy-to-follow video tutorials help you learn software, creative, and business skills.Become a member

Static vs. dynamic requests

From: Dynamic Dreamweaver Websites: Creating and Validating Forms

Video: Static vs. dynamic requests

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.

Static vs. dynamic requests

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.

Show transcript

This video is part of

Start learning today

Get unlimited access to all courses for just $25/month.

Become a member
Sometimes @lynda teaches me how to use a program and sometimes Lynda.com changes my life forever. @JosefShutter
@lynda lynda.com is an absolute life saver when it comes to learning todays software. Definitely recommend it! #higherlearning @Michael_Caraway
@lynda The best thing online! Your database of courses is great! To the mark and very helpful. Thanks! @ru22more
Got to create something yesterday I never thought I could do. #thanks @lynda @Ngventurella
I really do love @lynda as a learning platform. Never stop learning and developing, it’s probably our greatest gift as a species! @soundslikedavid
@lynda just subscribed to lynda.com all I can say its brilliant join now trust me @ButchSamurai
@lynda is an awesome resource. The membership is priceless if you take advantage of it. @diabetic_techie
One of the best decision I made this year. Buy a 1yr subscription to @lynda @cybercaptive
guys lynda.com (@lynda) is the best. So far I’ve learned Java, principles of OO programming, and now learning about MS project @lucasmitchell
Signed back up to @lynda dot com. I’ve missed it!! Proper geeking out right now! #timetolearn #geek @JayGodbold

Are you sure you want to delete this note?

No

Thanks for signing up.

We’ll send you a confirmation email shortly.


Sign up and receive emails about lynda.com and our online training library:

Here’s our privacy policy with more details about how we handle your information.

Keep up with news, tips, and latest courses with emails from lynda.com.

Sign up and receive emails about lynda.com and our online training library:

Here’s our privacy policy with more details about how we handle your information.

   
submit Lightbox submit clicked
Terms and conditions of use

We've updated our terms and conditions (now called terms of service).Go
Review and accept our updated terms of service.