Thursday, 21 February 2013

PHP over HTML

Now that we have a running server and updated the default web page index.HTML on the server to that of our GUI design we now need a way of getting our HTML to talk to our server and activate a python script that in turn controls a GPIO port on the Raspberry Pi. This is where PHP comes into the design, as much as HTML is designed to allow the programmer to make websites that can hyperlink here hyperlink there upload photos that will be displayed etc. it fails on the part where information can be submitted and received from a server. PHP is designed to be a much more dynamic webpage allowing for coding and the submission of information repeatedly whereas HTML is a lot more static. Therefore we are going to be converting our HTML page to PHP. To install this on the Pi we simply entered the code sudo apt-get install php5 which then directed the Pi download and extract the package, giving the Pi the ability to handle PHP files.

We are still in the development stage of the PHP site but shouldn’t be too long away now from a working web-page, as far as the GUI goes for the moment it will be kept the same.
 

No comments:

Post a Comment