|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2001-09-21 20:27 UTC] smanish at mailandnews dot com
<?php
//header ("Content-type: image/gif") ;
?>
<html>
<body>
<?php
$dbh = ibase_connect("localhost:c:\program files\borland\interbase\bin\Binary_Data.gdb", "SYSDBA", "masterkey");
$sth = ibase_query($dbh, "select description, bin_data from binary_data where id = 5") ;
$row = ibase_fetch_row($sth) ;
print ("Description : $row[0]") ;
$blobid = ibase_blob_open($row[1]) ;
$tempibase = tempnam("temp", "TMP") ;
$tempibase .= ".gif" ;
//$fp = fopen($tempibase, "w") ;
while($data = ibase_blob_get($blobid, 1024))
{
// fputs($fp, $data) ;
$finaldata .= $data ;
}
//fclose($fp) ;
ibase_blob_close($blobid) ;
ibase_free_query($sth) ;
//print ("Got the blob field") ;
//print ($finaldata) ;
//echo "<br><center><img src=$tempibase ></center>" ;
/*$blobid = ibase_blob_create() ;
ibase_blob_add($blobid, $data) ;
$blob_id_save = ibase_blob_close($blobid) ;*/
ibase_close($dbh) ;
?>
</body>
<html>
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Oct 29 11:00:01 2025 UTC |
Running IIS 5.1 PHP 4.3.3 Getting error: CGI Error The specified CGI application misbehaved by not returning a complete set of HTTP headers. The headers it did return are: I get it about every 5-6 times i use call login.php?logout= from login.php: if (isset($_GET['logout'])){ session_start(); session_unset(); session_destroy(); header("Location: main.php?page=index"); exit; }