ads_longreadlen

Advantage PHP Extension

  Previous topic Next topic  

Limits the amount of data that is read from memo or BLOB fields.

Syntax

bool ads_longreadlen( resource result_id,

int length )

Parameters

result_id (I)

ID of a result set.

length (I)

Amount of data to read.

Remarks

ads_longreadlen sets the maximum amount of data that is read from memo and BLOB fields in a table. The default length read for memo and BLOB fields is 4096 bytes. True is returned if the value is successfully modified. False is returned in the event of an error.

Example

<?

echo "Connecting to Server<br>\n";

$rConn = ads_connect( "DataDirectory=\\\\server1\\share1\\data\\;ServerTypes=2", "", "" );

echo "Connected<br>\n";

 

echo "Retrieve the customers.<br>\n";

$rResult = ads_do( $rConn, "SELECT * FROM customers" );

 

echo "Set the amount of data read from memo fields to 16k.<br>\n";

ads_longreadlen( $rResult, 16384 );

 

echo "Closing the connection<br>\n";

ads_close( $rConn );

echo "Disconnected<br>\n";

?>

See Also

ads_fetch_array

ads_fetch_into