Reading a big csv file in php, can't read all the file?

Your script is probably running out of memory. Check your error logs or turn on error reporting to confirm. To make your script work you can try increasing the memory_limit which can be done either in php.

Ini or using ini_set() . But a much better approach would be not to store the csv data in an array at all, but rather process each line as you read it. This keeps the memory footprint low and alleviates the need for increasing the memory_limit .

You're exhausting all the memory PHP has available to it. A file that big can't fit into memory, especially not in PHP, which stores a lot of additional data with every variable created.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions