[wp-trac] Re: [WordPress Trac] #3632: WordPress to WordPress import
fails with big files
WordPress Trac
wp-trac at lists.automattic.com
Wed Apr 11 17:39:35 GMT 2007
#3632: WordPress to WordPress import fails with big files
----------------------------+-----------------------------------------------
Reporter: PozHonks | Owner: anonymous
Type: defect | Status: new
Priority: high | Milestone: 2.4
Component: Administration | Version: 2.1
Severity: major | Resolution:
Keywords: |
----------------------------+-----------------------------------------------
Comment (by Otto42):
Changing this:
{{{
$importdata = file($this->file); // Read the file into an array
}}}
to this:
{{{
if ( extension_loaded('zlib') && substr($this->file, -3) == '.gz') {
$importdata = gzfile($this->file); // Read the file into an array
} else {
$importdata = file($this->file); // Read the file into an array
}
}}}
In the get_entries() function in wp-admin/import/wordpress.php should do
the trick for importing gzip compressed files.
Sending back gzip compressed output is trickier. I don't think
ob_gziphandler will work in export.php, because of the header thing. Worth
a try though, maybe some testing is in order.
--
Ticket URL: <http://trac.wordpress.org/ticket/3632#comment:8>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list