i have this http://rufo.freephp.digiro.net/rufo/posts.php3
it's suposed to be like a guestbook... people come in, fill the form and post the message. I have the form mail the data to a transfer.php3 with this code:
<?php
$contents = getenv("QUERY_STRING");
list ($date,$name,$email,$url,$message,$siterating) = split('=', $contents);
$date = rawurldecode ($date);
$name = rawurldecode ($name);
$email = rawurldecode ($email);
$url = rawurldecode ($url);
$message = rawurldecode ($message);
$siterating = rawurldecode ($siterating);
$fp = fopen ("http://rufo.freephp.digiro.net/rufo/archive.htm", "w");
fwrite ($fp, "$date<br>$name<br>$email<br>$url<br>$message<br>$siterating\n");
fclose ($fp);
?>
archive.htm is the file i want the post to be writen in.
and then where i have the form to fill out (original page - posts.php3) i have this code to read the archive.htm:
<?php
$filename = "http://rufo.freephp.digiro.net/rufo/archive.htm";
$fd = fopen ($filename, "r");
$posts = fread ($fd, filesize ($filename));
fclose ($fd);
echo ($posts);
?>
now the problem is that it's not writing the file, neightheris itreading it 🙁
can somebody help me?