3

この単純なスクリプトに問題があります...

<?php
$file = "C:\\Users\\Alejandro\\Desktop\\integers\\integers";

$file = file_get_contents($file, NULL, NULL, 0, 34359738352);

echo $file;
?>

それは私に常にこのエラーを与えます:

file_get_contents(): 長さはゼロ以上でなければなりません

私は本当に疲れています、誰か助けてくれませんか?

編集:ファイルを32の部分に分割した後...

エラーは

PHP Fatal error:  Allowed memory size of 1585446912 bytes exhausted (tried to al
locate 2147483648 bytes)

Fatal error: Allowed memory size of 1585446912 bytes exhausted (tried to allocat
e 2147483648 bytes)

編集 (2):

ここで、このバイナリ ファイルを 0 から (2^31)-1 までの数値のリストに変換する必要があります。そのため、ファイルを読み取る必要があるので、2 進数を 10 進数に変換できます。

4

2 に答える 2