On Thu, 26 Apr 2001, Alex Piaz wrote:

> At 22:07 26/4/2001 -0400, you wrote:
> >Hi all,
> >I know how to get a line break in text. Is there a way to get a line break
> >between the user agent string below? I would line to print in a column
> >instead of a long row.
>
> Use \n\r concatening with your actual string
>
> See below:
>
> ><?php
> >$newfile = fopen("log_test.txt", "a+");
> >fwrite($newfile, getenv("HTTP_USER_AGENT")."\n\r");
> >fclose($newfile);
> >?>
>
>
> It will work.
>

Actually the correct sequence is \r\n on Windows platforms. Just a small
note.

Joao

--
Joćo Prado Maia <[EMAIL PROTECTED]>
http://phpbrasil.com - php com um jeitinho brasileiro


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to