I
I
IgorRastarov2017-08-28 10:52:37
Python
IgorRastarov, 2017-08-28 10:52:37

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();

A letter arrives in the mail.
But if I write
call_non_existed_function() // делаю просто PHP ошибку, убрав ;

then nothing comes in the mail.
Why is that?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
S
Stanislav Nekrasov, 2019-05-05
@onime_ne_smotru

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)

S
SagePtr, 2017-08-28
@SagePtr

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.

E
Egor, 2017-08-28
@egormmm

The index.php does not reach the launch, because there is a syntax error in the code.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question