Функции Informix

Содержание

  • ifx_affected_rows — Получить число строк затронутых запросом
  • ifx_blobinfile_mode — Устанавливает режим BLOB для всех запросов типа SELECT
  • ifx_byteasvarchar — Установить поведение по умолчанию для BYTE
  • ifx_close — Закрыть соединение с Informix
  • ifx_connect — Открытие соединения с базой данных Informix
  • ifx_copy_blob — Создать дубликат заданного объекта BLOB
  • ifx_create_blob — Создать объект BLOB
  • ifx_create_char — Создает символьный объект
  • ifx_do — Запускает подготовленный SQL-запрос
  • ifx_error — Возвращает код ошибки последней операции Informix
  • ifx_errormsg — Возвращает сообщение об ошибке последнего выполненного оператора Informix
  • ifx_fetch_row — Получить строку в виде ассоциативного массива
  • ifx_fieldproperties — Список свойств полей
  • ifx_fieldtypes — Список столбцов
  • ifx_free_blob — Удалить объект BLOB
  • ifx_free_char — Удалить символьный объект
  • ifx_free_result — Высвобождает ресурсы для запроса
  • ifx_get_blob — Возвращает контент объекта BLOB
  • ifx_get_char — Возвращает контент символьного объекта
  • ifx_getsqlca — Получить содержимое sqlca.sqlerrd[0..5] после выполнения запроса
  • ifx_htmltbl_result — Форматирует все строки запроса в виде таблицы HTML
  • ifx_nullformat — Установить возвращаемое по умолчанию значение для NULL
  • ifx_num_fields — Возвращает количество столбцов в запросе
  • ifx_num_rows — Число строк уже извлененных из запроса
  • ifx_pconnect — Open persistent Informix connection
  • ifx_prepare — Подготавливает SQL-запрос для выполнения
  • ifx_query — Send Informix query
  • ifx_textasvarchar — Устанавливает режим чтения TEXT
  • ifx_update_blob — Обновление контента объекта BLOB
  • ifx_update_char — Обновление контента символьного объекта
  • ifxus_close_slob — Удалить объект SLOB
  • ifxus_create_slob — Создать и открыть объект SLOB
  • ifxus_free_slob — Удалить объект SLOB
  • ifxus_open_slob — Открыть объект SLOB
  • ifxus_read_slob — Прочитать заданное количество байт из SLOB
  • ifxus_seek_slob — Задать текущий файл или переместится на позицию
  • ifxus_tell_slob — Возвращает текущий файл или позицию
  • ifxus_write_slob — Записать строку в объект SLOB
add a note add a note

User Contributed Notes 10 notes

up
1
roger at wzero dot com dot br
17 years ago
Unfortunately the informix extension has been moved to PECL but has no maintainer.
http://devzone.zend.com/node/view/id/1621#Heading11

In practic terms, it has been moved but is not available in PECL yet.

It's sad. I have a big client who uses this extension for more than 6 years and now has to change a code base of 500,000 lines of code or install an old version of PHP in the new server. They recently bought a redundant, double cpu, 8 gb ram, scsi disk server and will not be happy to run old versions of software with unmaintained extensions.
up
0
Ian McMurray
19 years ago
Installation on RedHat Fedore Core (or in that matter any Linux OS which has a version of glibc  of 2.3.* ~or above~) will need to have the latest Informix CSDK (downloadable from IBM). 2.90.UC1.LINUX at the time of this post.

http://www-306.ibm.com/software/data/informix/tools/connect/

I was unable to make PHP with v2.80 of the csdk (as it complained about mktemp being dangerous and how ctype was undefined. After downloading csdk 2.90, I was able to make PHP with no problems at all. (--with-informix).

There goes 2 days of my life!

Feel free to drop me an email at ian_at_devtonic_dot_com if you have any questions.
up
0
jeff at domintcom dot com
22 years ago
add the following to /etc/profile (right before unset i (adjust to your needs)

export INFORMIXDIR=/opt/informix
export ODBCINI=/usr/local/etc/odbc.ini
export INFORMIXSERVER=m_srv

then add the following to your httpd.conf

PassEnv INFORMIXDIR
PassEnv ODBCINI
PassEnv INFORMIXSERVER

(or you can use SetEnv SetEnv INFORMIXDIR /opt/informix  etc.)
up
0
cornecNOSPAM at reach dot NO_SPAM dot com
22 years ago
I upgraded to csdk-2.70.UC3-1 and got the following error when trying to start apache:

Syntax error on line 205 of /usr/local/apache/conf/httpd.conf:
Cannot load /usr/local/apache/libexec/libphp4.so into server: /opt/informix/lib/esql/libifgen.so: undefined symbol: stat
/usr/local/apache/bin/apachectl start: httpd could not be started

This machine has glibc 2.3.5

The following fixed the problem for me (surely there's a better fix) but i'm not sure how it might affect other programs linked to libifgen

mkdir /tmp/ifx
cd /tmp/ifx
ar x $INFORMIXDIR/lib/esql/libifgen.a
gcc -shared -o libifgen.so *.o
cp libifgen.so $INFORMIXDIR/lib/esql
up
0
programacion at afinformatica dot com
22 years ago
I have compile php-4.0.6 with informix support (dynamic) and when I try to
start apache, it gives me this error message:

Syntax error on line 246 of /etc/httpd/httpd.conf:
Cannot load /usr/lib/apache/libphp4.so into server: /home/informix7/lib/esql/lib
ifgen.so: undefined symbol: stat
/usr/sbin/apachectl start: httpd could not be started
up
0
isaac dot hopley at morton-fraser dot NO_SPAM dot com
22 years ago
If you are tring to access an Informix Online 5.x server over the
network (ie from a webserver) using PHP, be aware that Online
doesn't support network communications as standard unlike later versions.

You need the Informix product 'I-Star' on your Online server.
This will allow your webserver with the informix client SDK
installed to communicate natively (ESQL).

Thanks go to Mario @ PRS for this info.
up
0
old dot wolf at project-w dot com
23 years ago
An intermittent SQL error -25580 is caused by using the wrong glibc version in Linux.

I have this working correctly in Linux (x86) with Informix Client SDK for 2.70UC-1 for Linux, with glibc 2.1.3.

Originally I had glibc 2.1.1 (Red Hat 6), which gave the intermittent error, but upgrading glibc fixed it.

The Informix Client SDKs can be downloaded from www.informix.com (you need to own an Informix database to log on), and glibc is at ftp://ftp.gnu.org/gnu/glibc .
up
0
MarkRoedel at letu dot edu
23 years ago
There's also a FreeBSD version of the client libraries that'll work with PHP.  It's not available for download from their website, but you can request a copy (cd or electronic delivery) by calling Informix Customer Support at 1-800-274-8184 option 3.

Some customer service reps know more about alternative operating systems than others, so you may have to do a bit of educating before they can locate the product in their database, but it's definitely there.

My e-mail confirmation referred to it as "Orderable Part Number 100-15871-204057-1", although that number may be specific to the electronically-delivered edition.
up
0
robernet at music-images dot com
24 years ago
Verify with phpinfo() that you have informix module compiled in php.
Also verify that env vars INFORMIXDIR, INFORMIXSERVER, LD_LIBRARY_PATH are set, and that PATH have a route to your informix subdir.
up
-1
drsound
20 years ago
I just wrote a mini-HOWTO about adding Informix support to mod_php running on a Gentoo Linux server (x86). I wanted to post it here but it was too long. You can find it on http://forums.gentoo.org/viewtopic.php?t=245249 (just in case for some reason they change the thread number, the title is "HOWTO: PHP Informix client support").
To Top