php-windows | 2002071
Date: 07/15/02
- Next message: Christoph Grottolo: "[PHP-WIN] Re: MSSQL and NT Authentification"
- Previous message: Martin Clifford: "[PHP-WIN] [PHP-DB] RE: PHP meetup [CROSS-POST] Meet other PHP Developers in Your Area"
- Maybe in reply to: MAAS: "[PHP-WIN] fputs - need help!!"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Next message: Christoph Grottolo: "[PHP-WIN] Re: MSSQL and NT Authentification"
- Previous message: Martin Clifford: "[PHP-WIN] [PHP-DB] RE: PHP meetup [CROSS-POST] Meet other PHP Developers in Your Area"
- Maybe in reply to: MAAS: "[PHP-WIN] fputs - need help!!"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

