tags:

views:

38

answers:

3

I have a massive multidimensional array that has been serialised by PHP. It has been stored in MySQL and the data field wasn't large enough... the end has been cut off... I need to extract the data... unserialize wont work... does anyone know of a code that can close all the arrays... recalculate string lengths... it's too much data to do by hand.

Many thanks.

+1  A: 

I think this is almost impossible. Before you can repair your array you need to know how it is damaged. How many childs missing? What was the content?

Sorry imho you can't do it.

fabrik
A: 

I doubt anyone would write code to retrieve partially saved arrays:) I fixed a thing like this once but by hand and it took hours, and then i realized i don't need that part of the array...

Unless its really important data(and i mean REALLY important) you'd be better to leave this one go

Quamis
A: 

Serializing is almost always bad because you can't search it in any way. Sorry, but it seems as though you're backed into a corner...

Webnet