Sunday 9 October 2011

PHP Wall

Using a work example from http://www.nairaland.com/nigeria/topic-214623.0.html I was able to upload my own PHP wall to zappa.
My example is here - http://zappa.uwl.ac.uk/~21108489/

The php
<?php
$text="<hr align='left'>".date("m:i:s ").$_REQUEST['text'];

$handle = fopen("wall.txt", "a");
fwrite($handle,$text);
fclose($handle);

echo $text;
?>

The functions for download and post are located in the html file. It should be quite easy to implement this into our website so the users can have a message board feature to the page.