topbar

Welcome to my HE blog ..

Monday, 9 October 2017

Unit35

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)

No comments:

Post a Comment

Unit 71: Assignment one upload point

Upload your work to this post pls.