string - Logging each error on a new line php -



string - Logging each error on a new line php -

i need log each error on new line.

file_put_contents('pdoerrors.txt', $e->getmessage() . \n, file_append);

this works intended except remains on first line effort utilize \n appears incorrect.

alternative way:

file_put_contents('pdoerrors.txt', $e->getmessage().php_eol, file_append);

php string string-concatenation

Comments

Popular posts from this blog

delphi - blogger via idHTTP : error 400 bad request -

c++ - cuda, pycuda -- how to write complex numbers -- errors:class "cuComplex" has no member "i" -

How do I check if an insert was successful with MySQLdb in Python? -