A problem writting to a file

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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?

[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Database Programming]     [PHP Install]     [Kernel Newbies]     [Yosemite Forum]     [PHP Books]

  Powered by Linux