finding colors in gif files
| From: | johannes reichardt | Date: | Wed, 05 Jun 2002 07:38:03 +0000 |
| Subject: | finding colors in gif files | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-100620@lists.php.net to get a copy of this message | ||
sorry- last mail i forgot the gif file, here it is though:
also the complete code i got so far:
<?php
echo "<table width=600 border=1 wrap><tr><td>";
$filetext1 = implode("",(@file("vcd_1.gif")));
// $filetext1 = bin2hex($filetext1);
$newfiletext1 = "";
for ($i = 0; $i < strlen($filetext1); $i++) {
$currchar = substr($filetext1, $i, 8);
$newfiletext1 .= $currchar .= " ";
}
echo $newfiletext1;
echo "</td></tr></table>";
?>
begin 666 vcd_1.gif
M1TE&.#EAZ
@*(`/\S9OW]_5)24C(R,O___P`````````"'Y!
$`0
M+ ```#H" ```/G&+#<_C#*2:N]..O->P^$XHUD:9YHJB[!0(1K+,]T';?N
M*]I\[_\R7$X'+!J/2(AP2$PZGU#5DMF,6J_8R91:S7J_SRVW"RZ;;>(Q^<QN
ME]+JM7M.K\#C\KI^?\?G]X!L?7Y_@899@X2%AXQ.B8J+C9(_CY"1DY@SE9:7
MF9XGFYR=GZ0<H:*CI:IVZVNK["NB^TM;:W.ZNZ&Z>SM[_ N;O#%+W Q[_"
MQ,L-QLC/M<K,Q,[0UC#3S-77UM+9I-O<W=^ZX>+CY."QZ["^Y^?>Z8;F[]?Q
4\GKT]>CXC*'N^^#U:[0)(+ $#L
`
end