[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. ?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

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. ?php $file_pointer=file('emails.txt','a') || exit; $string_to_write = ($newmail).\n; $s=fopen($file_pointer,$string_to_write); $s=fclose($fp); ? Where did

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

2002-04-28 Thread John Holmes
, 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

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. ?php $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 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: ? $fp =

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 there to