PHP to determine if SKIP32 encryption after the repeat 5800-P32TQF 0010 Haier P32R1 does not boot p32r

Source: Internet
Author: User
$max = 1000000000-500000000;
$file _str = Array ();
$page = 1;
$page _count = 1000000;
for ($i = 0; $i < $max; $i + +)
{
$key = Skip32_encode ($i);
$str = $i. ': '. $key. " \ n ";
$file _name = $key% 10000;
if (!isset ($file _str[$file _name]))
{
$file _str[$file _name] = "";

}

Save the result to an array of size 1000000 and write to the file once

$file _str[$file _name]. = $STR;
Unset ($key, $STR);
if ($i > (3000000000 + $page * $page _count))
{
$page + +;
foreach ($file _str as $key = $value)
{
File_put_contents ("/data/work/lzz/niu4/tmp/skip32/{$key}.log", $value, File_append);
unset ($file _str[$key], $key, $value);
}
Clearstatcache (TRUE);
unset ($file _str);
$file _str = Array ();
}
}
echo "ended";

Exit ();

Running LS in the SKIP32 directory | Xargs Cat | Awk-f ': ' {print $} ' | uniq-d so you can tell if there's a repetition.

The above is the introduction of PHP to determine whether SKIP32 encryption after the duplication, including the skip,p32 aspects of the content, I hope that the PHP tutorial interested in a friend helpful.

  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.