On Wed, 2004-12-15 at 08:27 -0500, Lowell Allen wrote: <snip> > $fh = fopen("test.txt", "r") or die($php_errormsg); </snip> Try opening the file "rw". At the moment, you're opening it read only. Ian -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php