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++ - compiler errors when initializing EXPECT_CALL with function which has program_options::variables_map as parameter -

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