��� ����������� ���������� �������� ������� ��������� NORMAL. ���� �� ����� �������� �������� ������������ ����� ������ STOP, �������� ���������� ��������� ABORTED. ���� �������� ����������� ������ ����������� ��� �������, ��������������� ���� ��������� TIMEOUT. �������� ����������, ��� ������ ����� ���� �������� � ����������� �� ���� �������.
���� ���������, ����� �������� ��������� ���� ���������� ��� ������� ���������� �������������, ����� ���������� � ����� ������������ �������� ��������� ignore_user_abort = 1 (��� ����� ����� ������� � ������ ������������ Apache). ����� ����� ��������������� �������� ignore_user_abort(). � ��������� ������, �������� �����������.
����� ������������ ���������� �������� ��������, ���������� ������������ ������� set_time_limit().
���� �������� register_shutdown_function() ���� ����������� ������� "����������� ��� ���������� ��������", ��, ��� ����������� �� ������� �����������, ��� ����� ��������� ����� ���, ��� �������� ����������. � � "�����������" ������� ����� ����� �������� (� ������� �������: connection_aborted(), connection_timeout() � connection_status()), ��� �� �������� �������� ��������� ��� ��������.
connection_aborted
����������� ������� ����������� �������������.
��������� :
int connection_aborted(void);
������� connection_aborted() ���������� true, ���� ����������� ���� ��������� �������������.
����������� ������� ����������� �������������.
��������� :
int connection_aborted(void);
������� connection_aborted() ���������� true, ���� ����������� ���� ��������� �������������.
connection_status
����������� ������� �����������.
��������� :
int connection_status(void);
���������� �������� �������� ����, ����������� �������� � "�����������" �������, ��� �� �������� �������� �������� � ������� �����. ��������, ���� ������������ 3 (ABORTED | TIMEOUT), �� ��� ��������, ��� ����� ���������� �������, � ����� ��, ��� ������������ ��������� �� �������� ��������.
���� ������������ 0 (�� ���� �������� NORMAL), �� ��� ��������, ��� ���������� �������� �� ���� ��������.
����������� ������� �����������.
��������� :
int connection_status(void);
���������� �������� �������� ����, ����������� �������� � "�����������" �������, ��� �� �������� �������� �������� � ������� �����. ��������, ���� ������������ 3 (ABORTED | TIMEOUT), �� ��� ��������, ��� ����� ���������� �������, � ����� ��, ��� ������������ ��������� �� �������� ��������.
���� ������������ 0 (�� ���� �������� NORMAL), �� ��� ��������, ��� ���������� �������� �� ���� ��������.
connection_timeout
����������� ����������� ����-����.
��������� :
int connection_timeout(void);
���������� true, ���� ����� ���������� �������� �������.
����������� ����������� ����-����.
��������� :
int connection_timeout(void);
���������� true, ���� ����� ���������� �������� �������.
ignore_user_abort
���������� �������� ��� ������� �����������.
��������� :
int ignore_user_abort([int setting]);
���������� setting ����� �������, ���������� �� �������� ��������� ���������� ��������, ���� ����� � �������� ��������. ���� �������� �� ������, �� ������������ ������� ���������.
���������� �������� ��� ������� �����������.
��������� :
int ignore_user_abort([int setting]);
���������� setting ����� �������, ���������� �� �������� ��������� ���������� ��������, ���� ����� � �������� ��������. ���� �������� �� ������, �� ������������ ������� ���������.
register_shutdown_function
������������� �������, ������� ����� ��������� ��� ����������.
��������� :
int register_shutdown_function(string func);
������������ ������� � ������ func � �������� �������, ����������� ����� ���������� ��������.
��������: ��� ��� ����� ���������� ������� ������� �������� ������ ����������, ��� ������ ��� �������, ������������������ � �������� "�����������", ������������ ������� �������� �������, ����� ������� ��� print ��� echo.
������������� �������, ������� ����� ��������� ��� ����������.
��������� :
int register_shutdown_function(string func);
������������ ������� � ������ func � �������� �������, ����������� ����� ���������� ��������.
��������: ��� ��� ����� ���������� ������� ������� �������� ������ ����������, ��� ������ ��� �������, ������������������ � �������� "�����������", ������������ ������� �������� �������, ����� ������� ��� print ��� echo.