Do you read the replies that were sent to you. Where did you get file() from and why are you using fopen() to write to a file??
You're lucky Miguel is such a nice guy and helping you out. ---John Holmes... > -----Original Message----- > From: Rodrigo [mailto:[EMAIL PROTECTED]] > Sent: Sunday, April 28, 2002 8:26 PM > To: [EMAIL PROTECTED] > Subject: [PHP] append line to text file HELP !!! > > Ok guys, this is the code and under it you can see what I get when I try > to submit the form. > > > <?php > $file_pointer=file('emails.txt','a') || exit; > $string_to_write = ("$newmail")."\n"; > $s=fopen($file_pointer,$string_to_write); > $s=fclose($fp); > ?> > > > Warning: Supplied argument is not a valid File-Handle resource in > /home/restricted/home/h4ck3r/public_html/write.php on line 4 > > Warning: Supplied argument is not a valid File-Handle resource in > /home/restricted/home/h4ck3r/public_html/write.php on line 6 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php