������� Informix ��� Informix (IDS) 7.x, SE 7.x, Universal
Server (IUS) 9.x � IDS 2000 ���������� � "ifx.ec" �
"php3_ifx.h" � ���������� ���������� informix. ��������� IDS 7.x ������
������������, � ������ ���������� �������� BYTE � TEXT. ��������� IUS 9.x
�������� ���������: ������� ����� ���� ������, �� ��������� SLOB � CLOB �� ��� � ������ ����������.
����������:
���������, ��� ���������� ��������� Informix INFORMIXDIR � INFORMIXSERVER �������� ��� PHP ifx-�������� � ��� ����������
INFORMIX bin ��������� � PATH. ��������� ���, �������� ������, ����������
����� phpinfo(), ������ ��� ������ ������������. �� ������
phpinfo() ��� ���������� ������ ���� �����������. ��� TRUE ��� ��� CGI php, ��� � ��� Apache mod_php. ��� ����� ������������ ����������
��� ���������� ��������� � ��������� ������� ������ Apache.
��������� ������������ ���������� Informix ����� ������ ���� ��������
���������� (��������� LD_LINBRARY_PATH ��� ld.so.conf/ldconfig).
��������� ��������� �� ������������� BLOB'�� (������� TEXT � BYTE):
BLOB'� ��������� ���������� BLOB-����������������.
������� ������� ���������� "blob id" ��� ������� ������� BYTE � TEXT. ��
������ �������� ���������� � ������� "string_var = ifx_get_blob($blob_id);",
���� �� ������� ��������� BLOB'�� � ������ (�
�������: "ifx_blobinfile(0);"). ���� �� ������������� �������� ����������
BLOB-�������� � �����, ����������� "ifx_blobinfile(1);", �
"ifx_get_blob($blob_id);" ���� ��� filename. ����������� ���������� I/O ������ ��� ��������� ����������� blob.
��� �������� insert/update �� ������� ������� ��� "blob id'�" �������������� � ������� "
ifx_create_blob();". ����� ���������� blob id'� � ������ � ��������� blob-������� ������ ������� (?)
� ������ �������. ��� update/insert �� ������������ �� ��������� blob-�����������
� ������� ifx_update_blob().
��������� BLOB-�������� ����� ���� �������� ����������� ������������, ���
����� ����� ������� �� ����� ������� ���������:
���������� ������������ : ifx.textasvarchar
���������� ������������ : ifx.byteasvarchar
runtime-������� :
ifx_textasvarchar(0) : ������������ blob id'� ��� select-�������� ��
��������� TEXT
ifx_byteasvarchar(0) : ������������ blob id'� ��� select-�������� �� ��������� BYTE
ifx_textasvarchar(1) : ���������� ������� TEXT, ��� ���� �� ��� ���� ���������
VARCHAR, ����� ��� �� ����� ���� ������������ blob id'� ���select-��������
ifx_byteasvarchar(1) : ���������� ������� BYTE, ��� ���� �� ��� ���� ���������
VARCHAR, ����� ��� �� ����� ���� ������������ blob id'� ��� select-��������
���������� ������������ : ifx.blobinfile
runtime-������� :
ifx_blobinfile_mode(0) : ���������� ������� BYTE � ������, blob id ��������� �������� ����������
ifx_blobinfile_mode(1) : ���������� ������� BYTE � �����, blob id ��������� �������� ��� �����
���� �� �������������� ��� ifx_text/byteasvarchar �������� 1, �� ������ ������������ ������� TEXT � BYTE
� select-��������, ��� ���������� (�� �� �� long)
���� VARCHAR. ��������� ��� ������ "����������" � PHP, �� ������� "binary safe".
�� ������� ���������� ��� ���������. ������������ ������ ����� ��������� ��
��� ������, �� ��������� �� ����������.
���� �� �������������� ��� ifx_blobinfile �������� 1, ����������� ��� �����, ������������
ifx_get_blob(..), ��� ��������� blob-�����������. ��������, ��� � ����
������ �� ��������� �� �������� ��������� ������, ��������� INFORMIX, �����
���������� ����. ������ ����� ����������� ��� ������� ����� ��������� ���� ��� ������� ������� BYTE.
���������� ��������� ������ ����� ���� ��������� ���������� ��������� "blobdir",
�� ��������� "." (������� ����������). ���-�� ����� putenv(blobdir=tmpblob");
�������� �������� ��������� ������, �������� ����������� (����� �� ���� ���������� � "blb").
��� ���������� �� ���������� ������� ��������.