Site Administration Setting Up Database Driven Websites |
This guide walks you through installing a web server, an SQL database server, and a server-side scripting tool that ties everything together. Some of the more popular tools for doing this are Apache, MySQL, and PHP3. This is what you will have accomplished after successfully completing this guide:
This guide is meant as an introductory guide to get you started in the world of server-side-scripting and web databases. It will help you get up and running with the aforementioned products, and hopefully give you a better understanding of how this stuff all works. How It WorksIt is helpful to have a feeling for what goes on behind the scenes, so here is an over simplification of how things would work,. This diagram isn't really correct but it should be enough for now:
So let's set the scenario. We have a web page that pulls some data out of a database. John Doe requests this page from his browser, the request is sent to the web server which in turn calls a PHP script. The PHP script is executed by the PHP preprocessor, it pulls data from the database. The results are then massaged by the rest of the PHP script and turned into HTML. The final HTML gets sent back to the user's browser. Got that? Let's look at this step by step:
Again, that's not 100% correct but it's enough to understand what goes on :). Now that we have a basic understanding of what we are trying to accomplish, let's get on to installing the software.
blog comments powered by Disqus |