Not working here is what I did:
PHP Code:
<?php
$tempfile = "Adidsa4.gif";
$tempfile = fopen($tempfile, 'r');
$htmldata = fread($tempfile, 1024*1024);
fclose($tempfile);
echo bin2hex("$htmldata");
echo '<br>';
function pauldump($image,$size) {
if ($fp = fopen($image, 'r')) {
$data = fread($fp, $size);
fclose($fp);
for($i=0;$i<strlen($data);$i++)
$hex .= dechex(ord($data[$i]));
} else
$hex = "File error";
return $hex;
}
echo pauldump('Adidsa4.gif',1024*1024);
?>
here is what i got
my script:
47494638396148000e00f00100000000ffffff21f90400000002002c0000000048000e0000026c8c8f09c9ed0fa334a0ce8b73ac4bfb3f7116486a9c22a25dc92262f78eafb72a6c1cc40b6ee64cdd0a3e8007224d873c354e30cb8ee2843e732321641585fab053aa8f124ace1cb5eef60b2e6bad1b17faac5617334c67955cec46b9e8ec3b04f63794c5f4554835a5845000003b
your script:
474946383961480e0f010000ffffff21f94000202c0000480e0026c8c8f9c9edfa334a0ce8b73ac4bfb3f7116486a9c22a25dc92262f78eafb72a6c1cc4b6ee64cdda3e807224d873c354e30cb8ee2843e732321641585fab053aa8f124ace1cb5eef6b2e6bad1b17faac5617334c67955cec46b9e8ec3b4f63794c5f4554835a58450003b
both are not the right format!
Bookmarks