beliar34
Member
- Joined
- Feb 28, 2012
- Messages
- 307
- Solutions
- 7
- Reaction score
- 11
Code:
/* READ OTB */
$otb = fopen('./data860/items.otb', 'rb' );
$init = false;
while(false !== ($char = fgetc($otb)))
{
$byte = HEX_PREFIX.bin2hex($char);
if($byte == 0xFE)
$init = true;
elseif($byte == 0x10 and $init)
{
extract(unpack('x2/Ssid', fread($otb, 4)));
if($item_ots_id == $sid)
{
if(HEX_PREFIX.bin2hex(fread($otb, 1)) == 0x11)
{
extract(unpack('x2/Sitem_id_in_dat_file', fread($otb, 4)));
break;
}
}
$init = false;
}
}
fclose( $otb );
/* CLOSE OTB */
if(!isset($item_id_in_dat_file))
{
file_put_contents('otb_error.txt', $item_ots_id . ', ', FILE_APPEND);
echo '<script>window.location = "getsingle860.php?id=' . ($item_ots_id+1) . '";</script>';
exit;
//die('item with ID ' . $item_ots_id . ' not found in .otb');
}
gesior/Gesior2012_Additional_Scripts
^ repo
spr unpacked properly but when i try doing "getsingle860.php?id=125" this is going to infinity (like 91919191 numbers) and generate only error in txt file, otb file exist and its fine tested by removing it then i get error thats its missing
what can be wrong ? i got php 7.2 and php7.2-gd
@Gesior.pl
Last edited: