Unit 35: Web Applications Development
In this unit we use PhP and Mysql as well as look at cookies.
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