topbar

Welcome to my HE blog ..

Monday, 10 October 2016

Server side Web design

Unit 35: Web Applications Development


In this unit we use PhP and Mysql as well as look at cookies.

PHP is a server-side scripting language designed primarily for web development but is also used as a general-purpose programming language (https://en.wikipedia.org/wiki/PHP)

The beauty of PHP is that because it is server side script all that a client sees is what ever is pumped out of the PHP echo commands as pure HTML.

Here is the standard hello world code using php.

PHP code starts with <?php that tells the server to intercept this code.

echo are used to send HTML data to client side services like web browsers.

The ?> is the signal to say this is the end of the PHP code.

<?php
echo "Hello world!";
?>

Look at this pdf with some sample PHP code.

Before you start playing with PHP you need access to a web server and a decent editor.

I suggest setting up a WAMP server on a PC/LAPTOP (http://www.wampserver.com/en/)
and for editing I use notepad ++ ( https://notepad-plus-plus.org/download/v7.html)





2 comments:

  1. Well done! I enjoy your input to this material. It has been helpful. Very enlightening stuff. Really a worth to read this article.

    15 great Kids websites, Designed by OptiMized360.

    ReplyDelete

Webdesign Assignment Three

Webdesign Assignment Three  Start by looking at feedback given with meeting with clients. Then show what the final website is to the ...