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

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

delphi - blogger via idHTTP : error 400 bad request -

postgresql - ERROR: operator is not unique: unknown + unknown -