<?php
// A script to test the "date" and "parse_str" functions
// author = Martin Bush, South Bank University
// date = 10th August 2002
// filename = testing-parse_str.php3
// version = 1.1
// history = -
echo "Just checking that the date function works...<p>";
echo date ("d/m/y");
echo "<p>That should have echoed 10/08/02<p>";
echo "Now to test that the parse_str function works...<p>";
$request = "expires=15/08/02&email=bushm@sbu.ac.uk&reminder=any string";
parse_str($request);
echo $reminder . "<br>";
echo $email . "<br>";
echo $expires;
?>
|