Search found 3 matches
- Wed Sep 03, 2008 3:04 pm
- Forum: PHP - Code
- Topic: XMLWriter output file truncated?
- Replies: 5
- Views: 933
Re: XMLWriter output file truncated?
Hi, 1) I flush by doing a $writer->flush(); at the end of the XML generation. The code for this is as follows: .... xml generation code goes here ... if ($this->_gzip) { $xml = $writer->outputMemory(); $fp = gzopen ($this->_filename.'.gz', 'wb'); gzwrite ($fp,...
- Wed Sep 03, 2008 9:47 am
- Forum: PHP - Code
- Topic: XMLWriter output file truncated?
- Replies: 5
- Views: 933
Re: XMLWriter output file truncated?
The file is simply truncated in the middle of a record. Here are the last 2 records (with the last one being truncated): <Product> <id>1854</id> <category_id>0</category_id> <category2_id>0</category2_id> <category3_id>0</category3_id> <category4_id>0</category4_id> <category5_id>0</cate...
- Wed Sep 03, 2008 9:07 am
- Forum: PHP - Code
- Topic: XMLWriter output file truncated?
- Replies: 5
- Views: 933
XMLWriter output file truncated?
Hi, I'm having a strange problem that I can't figure out. I'm trying to generate a large XML file using XMLWriter but the file I generate never grows beyond 3138986 bytes (whether I use the XMLWriter to write to a file/URI or generate the XML in memory and then pass it though gzwrite() doesn't affec...