Hi,
Can anyone help me, we are trying to write simple memo blobs into an interbase database using php4. We have tried the following example found on a PHP website:-
$blob_id = ibase_blob_create();
ibase_blob_add($blob_id, "string1");
ibase_blob_add($blob_id, "string2");
ibase_blob_add($blob_id, "string3");
$blob_id_str = ibase_blob_close($blob_id);
ibase_query("INSERT INTO BLOB_TABLE (BLOB_NUM, BLOB_1) VALUES (1, ?)",$blob_id_str);
Unfortunately when we run this script the web page is never displayed. We don't get an error or any kind of response. The table exists and the blob is defined as text. We take the blob out and all works fine. Has anyone actually had blobs working in PHP. Are we missing something or is there something we need to put in the php.ini file. All other interbase functions work so I know the php_interbase.dll is installed. We are have tried this on Windows 2000 server (linked with PHP.EXE [CGI]) and a Linux Raq4 box.
Thanks
Simon Farmer
Can anyone help me, we are trying to write simple memo blobs into an interbase database using php4. We have tried the following example found on a PHP website:-
$blob_id = ibase_blob_create();
ibase_blob_add($blob_id, "string1");
ibase_blob_add($blob_id, "string2");
ibase_blob_add($blob_id, "string3");
$blob_id_str = ibase_blob_close($blob_id);
ibase_query("INSERT INTO BLOB_TABLE (BLOB_NUM, BLOB_1) VALUES (1, ?)",$blob_id_str);
Unfortunately when we run this script the web page is never displayed. We don't get an error or any kind of response. The table exists and the blob is defined as text. We take the blob out and all works fine. Has anyone actually had blobs working in PHP. Are we missing something or is there something we need to put in the php.ini file. All other interbase functions work so I know the php_interbase.dll is installed. We are have tried this on Windows 2000 server (linked with PHP.EXE [CGI]) and a Linux Raq4 box.
Thanks
Simon Farmer