Page 1 of 1

writing to a file

Posted: Fri Aug 08, 2003 11:20 am
by skateis2s
$field=$_POST['name,email,subject,news,current_date'];
$fp = fopen("/home/xpcnbxc/public_html/csp/main.txt", "a+");
fputs($fp, "<table border='0' width='98%' align='center' class='table' cellspacing='0' cellpadding='0'><tr><td colspan='2' bgcolor='#000000'><font color='#DFA018' size='2'><b>$subject</b> posted by <b><a href='mailto:$email'><b>$name</b></a></b> on <b>$current_date</b></font></td></tr><tr><td bgcolor='#000000'>$news</td></tr></table><br>");
fclose($fp);




everytime it writes to the file, it goes to the bottom, anyway to make it so when you write something new, it goes to the top?

Posted: Fri Aug 08, 2003 1:05 pm
by macewan