I am having problems with this simple script...
<?php
$file = "C:\\Users\\Alejandro\\Desktop\\integers\\integers";
$file = file_get_contents($file, NULL, NULL, 0, 34359738352);
echo $file;
?>
It gives me always this error:
file_get_contents(): length must be greater than or equal to zero
I am really tired, can someone help me?
EDIT: After dividing the file in 32 parts...
The error is
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)
EDIT (2):
Now the deal is to convert this binary file into a list of numbers from 0 to (2^31)-1 That is why I need to read the file, so I can convert the binary digits to decimal numbers.
var_dump(34359738352, 34359738352 > 0);output on that system?float(34359738352) bool(true)