<?php
$id = $_POST['id'];
$password = $_POST['password'];
$DOCUMENT_ROOT = $_SERVER['DOCUMENT_ROOT'];
?>
<html>
<head>
<title>Today Meetings </title>
</head>
<body>
<h1> Today Meetings </h1>
<?php
echo "<p>Result : at";
echo date('H:i, js F Y');
echo "<p>Your information</p>";
echo "id : ".$id."<br />";
echo "password: ".$password."<br />";
$outputstring = $id.'id \t'.$password.'password \n';
echo $DOCUMENT_ROOT;
@ $fp = fopen($DOCUMENT_ROOT."/info.txt",'ab');
flock($fp, LOCK_EX);
if(!$fp) {
echo "<p><strong> Your information could not be processed at this time.
Please try againg later.</strong></p></body></html>";
exit;
}
fwrite($fp,$outputstring,strlen($outputstring));
flock($fp,LOCK_UN);
fclose($fp);
echo "<p>Information written.</p>";
?>
</body>
</html>