RE: [PHP-WIN] fputs - need help!!
| From: | David Redmond | Date: | Mon, 15 Jul 2002 23:20:11 +0000 |
| Subject: | RE: [PHP-WIN] fputs - need help!! | ||
| Groups: | php.windows | ||
| Request: | Send a blank email to php-windows+get-14776@lists.php.net to get a copy of this message | ||
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@telia.com]
Sent: Tuesday, 16 July 2002 12:22 AM
To: php-windows@lists.php.net
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