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
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, A

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