rampurearun Posted June 15, 2011 Share Posted June 15, 2011 Hi, I am trying to write result set data onto a .csv file but if data exceeds the limit of the file then it shows the error that allocated file size limit has exceeded and it is not writing further data how can I get rid of this thing please help me out...How can I extend the capacity of the file. Thank you in advance. Link to comment https://forums.phpfreaks.com/topic/239427-extend-file-size-to-write-more-data-into-it/ Share on other sites More sharing options...
sunfighter Posted June 15, 2011 Share Posted June 15, 2011 Where is the error coming from? PHP doesn't limit files. I'm guessing it's coming from your operation system. Are you using Linux or Unix? Link to comment https://forums.phpfreaks.com/topic/239427-extend-file-size-to-write-more-data-into-it/#findComment-1230224 Share on other sites More sharing options...
rampurearun Posted June 16, 2011 Author Share Posted June 16, 2011 I am using unix system and I am getting the following error : Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 24 bytes) in C:\xampp\htdocs\newtask\task3.php on line 80 how can increase the this memory size ? Link to comment https://forums.phpfreaks.com/topic/239427-extend-file-size-to-write-more-data-into-it/#findComment-1230319 Share on other sites More sharing options...
sunfighter Posted June 16, 2011 Share Posted June 16, 2011 rampurearun is have been far too long since I used Unix and I've never played with Linux :'( shame shame. All I remember is that they both have limitations on file size. You might want to repost this in the 'Web Server' section. Link to comment https://forums.phpfreaks.com/topic/239427-extend-file-size-to-write-more-data-into-it/#findComment-1230633 Share on other sites More sharing options...
xylex Posted June 16, 2011 Share Posted June 16, 2011 That's not a file size error, that's a memory limit error. Search this forum for "memory limit", plenty written up about it. Link to comment https://forums.phpfreaks.com/topic/239427-extend-file-size-to-write-more-data-into-it/#findComment-1230636 Share on other sites More sharing options...
rampurearun Posted June 17, 2011 Author Share Posted June 17, 2011 Thank you... Link to comment https://forums.phpfreaks.com/topic/239427-extend-file-size-to-write-more-data-into-it/#findComment-1230888 Share on other sites More sharing options...
chintansshah Posted June 21, 2011 Share Posted June 21, 2011 Hello Rampurearun, You should make changes in php.ini to exceed max_execution_time, I think it will help it. Link to comment https://forums.phpfreaks.com/topic/239427-extend-file-size-to-write-more-data-into-it/#findComment-1232729 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.