PHP: ibase_blob_get - Manual in Deutsh
PHP: ibase_blob_get - Manual in French
PHP: ibase_blob_get - Manual in Polish

You Are At PHP: ibase_blob_get - Manual Area


recent searches:
include functions , variable functions , post functions...




If you are new to PHP or just need to refresh your skills, this is the place to start. This series of tutorials will give you the basic knowledge you will need to create a simple PHP website.

PHP is a reflective programming language originally designed for producing dynamic web pages.[1] PHP is used mainly in server-side scripting, but can be used from a command line interface or in standalone graphical applications. Textual User Interfaces can also be created using ncurses.

PHP Manual
PrevNext

ibase_blob_get

(PHP 3 >= 3.0.7, PHP 4, PHP 5)

ibase_blob_get --  Get len bytes data from open blob

Description

string ibase_blob_get ( resource blob_handle, int len )

This function returns at most len bytes from a BLOB that has been opened for reading by ibase_blob_open(). Returns FALSE on failure.

<?php
    $sql       
= "SELECT blob_value FROM table";
    
$result    = ibase_query($sql);
    
$data      = ibase_fetch_object($result);
    
$blob_data = ibase_blob_info($data->BLOB_VALUE);
    
$blob_hndl = ibase_blob_open($data->BLOB_VALUE);
    echo         
ibase_blob_get($blob_hndl, $blob_data[0]);
?>

Whilst this example doesn't do much more than a 'ibase_blob_echo($data->BLOB_VALUE)' would do, it does show you how to get information into a $variable to manipulate as you please.

Note: It is not possible to read from a BLOB that has been opened for writing by ibase_blob_create().

See also ibase_blob_open(), ibase_blob_close() and ibase_blob_echo().

Numizmatyka
Agencja Reklamowa Katowice
analizy
banki kredyty
salon

Another Useful functions:


ref.ibase | function.ibase-wait-event | function.ibase-trans | function.ibase-timefmt | function.ibase-set-event-handler | function.ibase-service-detach | function.ibase-service-attach | function.ibase-server-info | function.ibase-rollback | function.ibase-rollback-ret | function.ibase-restore | function.ibase-query | function.ibase-prepare | function.ibase-pconnect | function.ibase-param-info | function.ibase-num-params | function.ibase-num-fields | function.ibase-name-result | function.ibase-modify-user | function.ibase-maintain-db | function.ibase-gen-id | function.ibase-free-result | function.ibase-free-query | function.ibase-free-event-handler | function.ibase-field-info | function.ibase-fetch-row | function.ibase-fetch-object | function.ibase-fetch-assoc | function.ibase-execute | function.ibase-errmsg | function.ibase-errcode | function.ibase-drop-db | function.ibase-delete-user | function.ibase-db-info | function.ibase-connect | function.ibase-commit | function.ibase-commit-ret | function.ibase-close | function.ibase-blob-open | function.ibase-blob-info | function.ibase-blob-import | function.ibase-blob-get | function.ibase-blob-echo | function.ibase-blob-create | function.ibase-blob-close | function.ibase-blob-cancel | function.ibase-blob-add | function.ibase-backup | function.ibase-affected-rows | function.ibase-add-user |


PHP is a widely-used general-purpose scripting language that is especially suited for Web development and can be embedded into HTML. If you are new to PHP and want to get some idea of how it works, try the introductory tutorial. After that, check out the online manual, and the example archive sites and some of the other resources available in the links section.