awesome!
but what is the 3rd var in imagettftext()?
code:
imagettftext($im, 12, 0, 150, 60, $color, $font, $text2);
nvm, clicked link
why is it that when I open the file as r+ it acts as though its w/w+ ? (replaces what is already in the file with the string)
http://ssd.sc47.info/Random/random%20sig/post.php
code:
<?php
$item = $_POST["item"];
$name = $_POST["name"];
if ($item && $name)
$file = fopen("text.txt", "r+");
fwrite($file, date("H:m")." - ".$name." - ".$item."<br />");
fclose($file);
?>
<img src="write.php" alt="" />
<form action="post.php" method="post">
<table cellspacing="0" cellpadding="1" border="0">
<tr>
<td>Name/td><td><input type="text" name="name" maxlength="12" /></td>
</tr>
<tr>
<td>Message/td><td><input type="text" name="item" maxlength="30" /></td>
</tr>
</table>
<input type="Submit" value="Shout!" />
</form>
a+ works fine, but i want it to add new line at the beginning of file