Short PHP content length

Problems with the Windows version of XAMPP, questions, comments, and anything related.

Short PHP content length

Postby akc » 14. November 2006 22:58

I had been using an old LAMP distribution, mainly to administer MySQL databases for my Perl projects. Recently I started using XAMPP, but an older version (1.4.11) installed a while ago.

Problem:

I've had trouble exporting my data from phpmyadmin due to prematurely cutoff content. I can see the content-length header is invariably 1852. I can't tell if this problem is related to phpmyadmin, PHP configuration, Apache config, or a combo.

I've spent more than an hour looking around for answers but haven't gotten anywhere. I haven't tried to upgrade to the latest XAMPP, mainly because I am not sure how best to upgrade without data loss. (Unfortunately I am in the middle of a critical project and don't want to experiment too much.)

Any advice is appreciated.

Keywords: partial/prematurely terminated php output
akc
 
Posts: 3
Joined: 14. November 2006 22:36

Postby Izzy » 15. November 2006 00:25

Not sure if this will help but experiment with the max_allowed_packet= size in this section of my.cnf and/or my.ini file.
[mysqldump]
quick
max_allowed_packet=16M

Save and restart mySQL.
Izzy
 
Posts: 3344
Joined: 25. April 2006 17:06

Postby akc » 16. November 2006 07:34

Thanks for the tip. As it turned out (and after some reading, including http://nvd.nist.gov/nvd.cfm?cvename=CVE-2005-1077), I installed the latest XAMPP, keeping the early ZIP version separately. Interestingly, out of the box the same problem persisted, so it's probably related to phpMyAdmin. There are a few workarounds/alternatives for now (mysqldump, export as zip), so it's not too bad.
akc
 
Posts: 3
Joined: 14. November 2006 22:36


Return to XAMPP for Windows

Who is online

Users browsing this forum: metirila and 225 guests