Hi i am trying to update content to begenning of file
and also keep all the contents
please help here is my code to post
<?php
header('Refresh: 5; url=http://XXXXX');
$filename = "message2.txt";
$cnt3 = "NEW: $date() $_POST[posttext]<br>\n";
$filed = @fopen($filename, "a");
@fwrite($filed, "$cnt3");
@fclose($filed);
$msg = "<p>Data Input complete</P>";
?>
<html>
<head>
<title>NOC News and Updates</title>
</head>
<body>
<?php echo "You entered:";
echo "$cnt3"; ?>
<meta HTTP-EQUIV=Refresh VOLUM=0 CONTENT="15;URL=http://xxxxxx">
</body>
</html>