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
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
, 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
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);
?
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 =
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
6 matches
Mail list logo