Re: [PHP] append line to text file HELP !!!

2002-04-28 Thread Richard Archer
At 1:28 AM -0400 29/4/02, eat pasta type fasta wrote: >you might also want to use this format to open file >$fp = fopen("your/path/goes/here", "a"); >$string_to_write = "$newmail" . "\n"; >fwrite($fp, $string_to_write); >fclose($fp); No point ignoring errors returned by functions. Errors are

Re: [PHP] append line to text file HELP !!!

2002-04-28 Thread eat pasta type fasta
check the read/write permissions in the folder the file is located in, they should be set to read/write/execute or th file will not be created, you might also want to use this format to open file $fp = fopen("your/path/goes/here", "a"); your code would look like this: _

Re: [PHP] append line to text file HELP !!!

2002-04-28 Thread David Freeman
On 29 Apr 2002 at 0:26, Rodrigo wrote: > Ok guys, this is the code and under it you can see what I get when I try > to submit the form. > > > $file_pointer=file('emails.txt','a') || exit; > $string_to_write = ("$newmail")."\n"; > $s=fopen($file_pointer,$string_to_write); > $s=fclose($fp); >

RE: [PHP] append line to text file HELP !!!

2002-04-28 Thread John Holmes
; 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. > > > $file_pointer=file('emails.txt','a&#x

Re: [PHP] append line to text file HELP !!!

2002-04-28 Thread Miguel Cruz
On Mon, 29 Apr 2002, Rodrigo wrote: > Ok guys, this is the code and under it you can see what I get when I try > to submit the form. > > $file_pointer=file('emails.txt','a') || exit; > $string_to_write = ("$newmail")."\n"; > $s=fopen($file_pointer,$string_to_write); > $s=fclose($fp); > ?> Whe

[PHP] append line to text file HELP !!!

2002-04-28 Thread Rodrigo
Ok guys, this is the code and under it you can see what I get when I try to submit the form. 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 /