$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.