OK, thanks for the link. Getting closer...
<form action=<? echo $_SERVER['PHP_SELF']; ?> method=post>
<input name=url type=text>
<input type=submit value=submit>
</form>
$fp = fopen("file.txt","r+b");
$contents = fread("file.txt",filesize("file.txt"));
fwrite("url.\n".$contents);
fclose($fp);
Gives me:
Warning: fread(): supplied argument is not a valid File-Handle resource in /home/.sites/106/site3/web/add_url.php on line 19
Warning: Wrong parameter count for fwrite() in /home/.sites/106/site3/web/add_url.php on line 20
So, I changed line 19 to be:
$contents = fread($fp,filesize("include.php"));
but how do I fix the fwrite statement?
Thanks so much for the help.
--Rayne