Forum Moderators: coopster
Fatal error: Allowed memory size of 83886080 bytes exhausted (tried to allocate 85053676 bytes) in /gt/fsrv8/home/mithilesh/domains/example.com/public_html/mylab/dp.php on line 7 Is there any class available so I can get help from there.
Thanks in advance
Subikar
[edited by: eelixduppy at 12:57 pm (utc) on May 31, 2007]
[edit reason] exemplified error [/edit]
ini_set("memory_limit","16M");
I still have difficulties understanding what lakhs is, more people will understand you if you say a thousand or 100 thousand or whatever lakhs is. :)
Habtom
[en.wikipedia.org...]
it's 100000
that's not really that many lines.
If you are reading it to a db are you going to remove that data from the file once it is inserted? Otherwise you will continue to have the same problem.
Are these archived logs or your active log?
I would chop them up and then run your script on the smaller pieces. Each time the file is run I would run it on archived log files, if that isn't possible then I would copy the file first then 0 the active log, though apache can rotate logs much more effectively.
You need to make it so you are dealing with smaller chunks, however you figure out how that can happen.