boeing747fp
12-20-2003, 11:00 PM
i have a script that writes the content from a textarea to a .txt file, but i want it to clear the txt file before posting new info into it......
<?php
$File = "top30message.txt";
$Open = fopen($File, "a");
if ($Open){
$message = $_GET['message'];
fwrite($Open, "$message");
fclose ($Open);
}
?>
<?php
$File = "top30message.txt";
$Open = fopen($File, "a");
if ($Open){
$message = $_GET['message'];
fwrite($Open, "$message");
fclose ($Open);
}
?>