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
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:
_
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);
>
; 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
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
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
/
6 matches
Mail list logo