php script not working for large csv files(20,000rows)

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Raju B
    New Member
    • Aug 2010
    • 11

    php script not working for large csv files(20,000rows)

    Hi everybody..
    i had written a script for calculating some columns using arrays to hold names in one array and values in another array.when i am giving a small csv file it's working successfully.bu t for large it showing error like

    Warning: fclose(): supplied argument is not a valid stream resource in /var/www/SUNDAY/statistics.php on line 241

    i had increased the memory_limit in php.ini file also but no use..
    please tell me what i have to do..
  • Thew
    New Member
    • Aug 2010
    • 69

    #2
    Post some code. Some usefull code. Else we cant help you.

    Comment

    • Raju B
      New Member
      • Aug 2010
      • 11

      #3
      hi Thew,
      thanks for your reply. the problem is rectified.When a php script is not working for large files we have to increase memory_limit in php.ini file and as well as restart the system.then it will works for any large CSV file...
      Thank you..

      Comment

      Working...