ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> php-windows
php-windows
[PHP-WIN] A problem writting to a file
by extremdur2 other posts by this author
Sep 20 2006 1:37AM messages near this date
RE: [PHP-WIN] Date problem | RE: [PHP-WIN] A problem writting to a file
Well... I am making a class that realizes the efects of a logging system, in
order to be able to debug my scripts that works with cookies, but I foun a
problem.

I don't know if its a windows php version problem, but when I try to insert
the newline caracter: '\' like this:

fputs($this-> fileID,'\n');

it writes "\n" instead of creating a new line...

the ugly result is something like this:

Beginning the logging at:\nPrueba de insertar texto sin abrir el archivo a
mano.\nA ver si lo inserta con un retorno de carro\n Beginning the logging
at:\nPrueba de insertar texto sin abrir el archivo a mano.\nA ver si lo
inserta con un retorno de carro\n Beginning the logging at:\nPrueba de
insertar texto sin abrir el archivo a mano.\nA ver si lo inserta con un
retorno de carro\n Beginning the logging at:\n

Anyone had this problem?
Thread:
extremdur2
Mikael Krogius
extremdur2
Alex Turner
Smitht

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved