Website Design: The First Step

. Remember from the HTML section that it is one ofThis is an important aspect that differs PHP/mySQL
the core parts of an HTML document. In this wayfrom the other languages. PHP/mySQL are run from
you can think of the as the top of the tree. If youthe server, or the computer that your computer
place an element in the body it is like a branchdownloaded a web site from. HTML/CSS/JavaScript
coming from the top of a tree to that element andare run after the files have been downloaded to your
connecting it. Now that there is this connection youcomputer by your computer via the browser.
can use JavaScript to be able to change whatever isThis connection has many important and difficult
at that branch.implications. One is that you only have one shot at
The language itself is very similar to c and is fairlydownloading content from a server. After the page
easy to learn. What is difficult is understanding howhas been downloaded to download something else
to navigate around the DOM to make dynamic webyou have to reconnect to the server to get fresh
pages.content. There are a few ways to do this, either
PHP & mySQLrequesting a new page or by using JavaScript.
With the understanding of HTML/CSS/JavaScript it isReview
possible to make interactive websites. But what ifSome final terminology is backend vs. frontend.
you want to be able to save content that isFrontend is what is being processed by a host (your)
provided by a viewer of your site, i.e. a comment.computer via the browser. This is done with HTML
The most basic use of PHP is to get contentCSS/Javascript. You have gone to a url and a server
submitted from an HTML site and put it into a(computer) has sent you some documents. Your
mySQL database.browser looks at these documents and figures out
A database is like an excel spreadsheet, or a bunchwhat they say (HTML) and how to make them
of rows and columns that are able to hold manyappear(CSS). If it wants to make the content move
types of information. PHP and mySQL are the mostaround it will use JavaScript.
common and free combination of script/databaseThe backend is everything the server can do, this
languages on the web right now.includes providing the HTML/CSS/JavaScript
PHP is considered a scripting language. This is becausedocuments to sending off email. This is done via PHP,
it is not compiled, i.e there is no .exe or executableand if any content is to be stored it is stored using a
like if you are running a program on your desktop.mySQL database.
Instead when a website needs something to happenHopefully this will have provided a basic understanding
it calls a PHP script which is immediately interpretedof the different languages and aspects of a website.
by the server that is hosting the website.