Answer the question
In order to leave comments, you need to log in
Why aren't PHP logs sent to my email?
Hi all. I made a revision of the logs according to this article
https://habrahabr.ru/post/74381/
I check like this:
echo $non_existed_var;
call_non_existed_function();
call_non_existed_function() // делаю просто PHP ошибку, убрав ;
Answer the question
In order to leave comments, you need to log in
The weirdest way I've come up with. But it seems to work) And cool:
date = "2017-02-16T14:43:42+03:00"
new_date = date.replace("T", " ")
new_date = "-".join(new_date[:10].split("-")[::-1]) + new_date[10:]
print(new_date)
If you do error handling using PHP, then this error handling will not work if the PHP file was stupidly not loaded due to syntax errors.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question