I'm currently working on inserting image on the firebird database and it's working fine alone, see the code below.
$dbh = ibase_connect($host, $user, $pass);
$blh = ibase_blob_create($dbh);
ibase_blob_add($blh, $data);
$blobid = ibase_blob_close($blh);
$sql = "INSERT INTO blobtable(blobfield) VALUES (?)";
$sth = ibase_query($dbh, $sql, $blobid);
but when I add some data on the insert statement suddenly the apache crash and stops working. See below code when I add new data.
$dbh = ibase_connect($host, $user, $pass);
$blh = ibase_blob_create($dbh);
ibase_blob_add($blh, $data);
$blobid = ibase_blob_close($blh);
$sql = "INSERT INTO blobtable(name, desc, blobfield ) VALUES (?, ?, ?)";
$sth = ibase_query($dbh, $sql, $name, $desc, $blobid);
blobfieldis what in that code? And what is your data? its the tmp_name?