php-windows | 2002071

RE: [PHP-WIN] fputs - need help!! From: David Redmond (davidr <email protected>)
Date: 07/15/02

Try adding in a '\r' as well. This stands for a carriage return and '\n'
means a line feed. The '\r' is necessary if your viewing the log file with
something like notepad, etc.

eg;

fputs ($sysname_log, $time - SystemName: $sysname\r\n");

Cheers

-----Original Message-----
From: MAAS [mailto:maas <email protected>]
Sent: Tuesday, 16 July 2002 12:22 AM
To: php-windows <email protected>
Subject: [PHP-WIN] fputs - need help!!

Hi

I use this line

fputs ($sysname_log, "$time - SystemName: $sysname\n");

I would like to get a log file, and everytime I refresh this page it will
make a new line and write
$the local time - SystemName: $sysname
So after a while it will look like this

$the local time - SystemName: $sysname
$the local time - SystemName: $sysname
$the local time - SystemName: $sysname

BUT, this is not working, I donīt get a new line, everything is on the same
line. Why??
I use WIN2K and IIS.

-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

-- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php