SpyLOG
PHP-Nuke ��-������    �������
���������
��������
 ����
�������
����
 �������
������������
�������
 ������
�������
������
 �����
�������
��������
 �����
������������
�������
 �����
������
���������
������� ���
����� �����

LXXIV. ������� ���������� �������

������� ���������� ������� ��������� ����������, ����� ����� ����� ��������� �� �������. ��� ����� ������������ � ��������� ���������, �������� ���� ��� ����� ������� �����/headers ��������, ����� ���� ��� ��� ������ ����� �������� ������. ������� ���������� ������� �� ������ �� �����, ���������� ��������� header() ��� setcookie(), ������ �� ����� �������, ��� echo(), � �� ������ ����� ������� PHP-����.

������ 1. ���������� �������
<?php

ob_start();
echo "Hello\n";

setcookie ("cookiename", "cookiedata");

ob_end_flush();

?>

� ���������� ������� ����� �� echo() ����� �������� � ������ ������, ���� ob_end_flush() �� ����� �������. ��� �������� ����� setcookie() ������� �������� cookie ��� ������������� ������. (�� �� ������ ��������� ��������� �����/headers ��������, ����� ���� ��� ������ ��� ���� ����������.)

��. ����� header()setcookie().

����������
flush - ������� ����� ������
ob_clean - ������� (�������) ����� ������
ob_end_clean - ������� (�������) ����� ������ � ��������� ����������� ������
ob_end_flush - ������� (����������) ����� ������ � �������� ����������� ������
ob_flush - ������� (����������) ����� ������
ob_get_contents - ���������� ���������� ������ ������
ob_get_length - ���������� ����� ������ ������
ob_get_level - ���������� ����������/nesting ������� ��������� ����������� ������
ob_gzhandler - ob_start callback-������� ��� ������ ������ gzip
ob_implicit_flush - ��������/��������� ������� �������
ob_start - �������� ����������� ������

����� ���������� �����
ovrimos_rollback ����� flush

RigaNet - Internet studio
For Web site issues, contact the Web master.

Rambler's Top100 �������@Mail.ru SpyLOG RigaNet