First, sorry for mu elementary english.
Thank You a lot for replay,
I've so installed on my linux box the new PHP 4.0.4 module, recompiled and installed with no problem, but I'm getting the same problem.
Here is a code portion of my uploader for interbase binary blob field:
if( isset( $HTTP_POST_VARS['id'])
&& is_readable( $HTTP_POST_FILES['binary']['tmp_name'] ))
{
$conn= ibase_connect('localhost:/HTTP/common/gdb/prova.gdb'
,$LOGON, $LOGONPWD );
$fh= fopen( $HTTP_POST_FILES['binary']['tmp_name'], "r" );
$blob_id_str= ibase_blob_import( $conn, $fh );
// the above line will output something like: blob_id_str= X ""|¾&
echo 'blob_id_str= ' . $blob_id_str . '<br>';
// the above line will output something like: hex blob_id_str= 580d2208040e2208000000007cbe260800000000
echo 'hex blob_id_str= '. bin2hex( $blob_id_str ). '<br>';
// now, when try to inserting:
ibase_query( "insert into filestore(id,binary) values ('". $HTTP_POST_VARS['id'] ."',$blob_id_str)");
fclose( $fh );
// an error occour:
// PHP Warning: InterBase: Dynamic SQL Error SQL error code = -104 Token unknown - line 1, char 49 "" in prova.phtml on line 36
the same result I'm experiencing using ibase_open and close, alwais, the returned blob_id_str seems to be pure binary.
Thank You for interest.
Franco