Okay, I'm working on a simple administration function for my site, but thats beside the point.
I need it to open a file, and adds a line of code (eventually automatically sort it alphabetically).
Here is the form processing script that I have right now.
$filename = "/usr/home/pinkcar/www.adr-racing.com/htdocs/downloads/demo-list.php";
$fd = fopen( $filename, "r" );
$current = fread( $fd, filesize( $filename ) );
$fileMessage = "<li><a href=\"/downloads/demo.php?game=$game&download=0\">$demo</a></li>$current";
fclose( $fd );
If you can see any problems or have any suggestions, that would be great...