I\'m writing a php script where I call
$lines = file(\'base_list.txt\');
to break a file up into an array. The file has over 100,000 lines in
Two suggestions:
Count the actual number of items in the array and see whether or not the array is the correct number of entries (therefore eliminating or identifying print_r()
as the culprit)
Verify the input... any chance that the line endings in the file are causing a problem? For example, is there a mix of different types of line endings? See the manual page for file() and the note about the auto_detect_line_endings
setting as well, though it's unlikely this is related to mac line endings.