Search found 3 matches
- Thu Jul 13, 2006 4:46 pm
- Forum: PHP - Code
- Topic: Xml parser - how to free memory space??
- Replies: 5
- Views: 550
Resolved!!!!
Hello, I finally understood what the problem was. I was reading the whole xml file into an array using file() command (though i needed just about first 100 lines). Unsetting the array didn't make any difference. But if I read just the lines I need using fgets(), the memory usage problem just disappe...
- Thu Jul 13, 2006 12:29 pm
- Forum: PHP - Code
- Topic: Xml parser - how to free memory space??
- Replies: 5
- Views: 550
xml_parser_free and ob_end_clean don't seem to work
I have tried xml_parser_free() as well as ob_end_clean().
But none of them seem to work.
By unset(), u mean unset every variable I have used individually?
Any suggestions?
Thank you.
Nivi.
But none of them seem to work.
By unset(), u mean unset every variable I have used individually?
Any suggestions?
Thank you.
Nivi.
- Wed Jul 12, 2006 6:10 pm
- Forum: PHP - Code
- Topic: Xml parser - how to free memory space??
- Replies: 5
- Views: 550
Xml parser - how to free memory space??
Hello, I have written an XML parser in php using xml_parser_create() and xml_set_element_handler() . The xml file parsed is around 73MB. My problem is, even after the XML file is parsed, the results obtained and the browser closed, it's still taking up about 30% of memory (by typing ps -aux at the c...