lehin
02.05.2004 - 01:49
GIF binary data (BLOB).
, , - , , . (GIF )
         ...
  $data = @ mysql_fetch_array($result);
  
  if(!empty($data["map"]))
  {
   header("Content-Type:image/gif");
   echo $data["map"];
        }
?>
Cool
1 - 02.05.2004 - 09:38
image/gif text/html . , ...

2 - 02.05.2004 - 09:40
?
BASE64 - ... , :)
lehin
3 - 02.05.2004 - 17:20
to 1
text/html image/gif header :
GIF89aKK2vvv󂂂,3)/&f\iii$WVW W٧ZN0VD7CCCj4E:6'FfwWqhuDȣswj999y̷[tnQ<ҎAވ4d*hOc"$$$uWԜUF";4'ʄKSMJg uÛn#f'[(xx'*V{YRb98G9#E%
.
to 2
addslashes(),
?
Kokoc
4 - 02.05.2004 - 23:23

echo stripslashes($data["map"]);
, 64K; (.. Windows)
lehin
5 - 03.05.2004 - 07:35
lehin
6 - 03.05.2004 - 07:45
medium blob,
, .
.
$file=fopen($userfile,"r");
$fileContents = fread($file, filesize($userfile));
$fileContents = addslashes($fileContents);
($userfile )

$insertQuery = "INSERT INTO region VALUES
(NULL, " ."\"".$regionName."\", " .
"\"" . $description . "\", ".
"\"".$fileContents."\")";
!
, .
Kosh
7 - 03.05.2004 - 10:37
? magic-quotes ( http://ru.php.net/manual/en/ref.info.php#ini.magic-quotes-gpc )
Kokoc
8 - 03.05.2004 - 15:21
"echo $data['map']" $data['map'] (fopen/fwrite/fclose) - acdsee . ( fc /b )
Cool
9 - 05.05.2004 - 00:14
;)
$file=fopen($userfile,"rb");
$fileContents = fread($file, filesize($userfile));
$fileContents = base64_encode($fileContents);
($userfile )

$insertQuery = "INSERT INTO region VALUES
(NULL, " ."\"".$regionName."\", " .
"\"" . $description . "\", ".
"\"".$fileContents."\")";

     -

>>