Or you could just write
<snip>
$fp1 = Fopen("D:\\log.txt","a+");
fwrite($fp1,"$start\n$array[0]\n$array[1]\n");
<snip>
to simplify...
--
Richard,
oblivion creations
http://oblivion.lunamorena.net
[EMAIL PROTECTED]
+4+ (0) 736 849 531 for sure contact..
"Jeff Van Campen" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > I need insert some variable ito log.txt file but every item (variable)
must
> > be on other line
> > how to do this ?
>
> If I am understanding your question correctly, you need to add a newline
> character (\n) at then end every line. Like so:
>
> $fp1 = Fopen("D:\\log.txt","a+");
> fwrite($fp1,"$start\n");
> fwrite($fp1,"$array[0]\n");
> fwrite($fp1,"$array[1]\n");
> .....
> fwrite($fp1,$end);
> Fclose($fp1);
>
> HTH
> -jeff
>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php