<?php
$tt = $_POST[“title”];
$mm = $
$contadd = (‘<!– start of entry –><h3>’.$tt.'</h3><p class=”p-Rightside” width=”100%”>’.$mm.'</p><!– end of entry –>’);
$one = fopen(‘blog/it.txt’, ‘r+’);
$contents = fread($one, filesize(‘blog/it.txt’));
$contents = $contadd.$contents;
fwrite($one, $contents, strlen($contents));
fclose($one);
echo ($contents);
?>
^ i use that for a blog script, it seems to somehow dupliocate whats already there or something… anything wrong? i want it to open and copy, add one to the beginning, and close.
see it in use at cammo91.ifreepages.com/gggraphix/index.php
add at cammo91.ifreepages.com/gggraphix/writeitform.html << if that dosent work look at:
cammo91.ifreepages.com/gggraphix/