Jump to content

Damaged serialized array


thiggins09

Recommended Posts

No sorry I don't. It's only stored as a serialized array.

 

Here is how I open and serialize / unserialize the array.

 

$xFile='x/list.php';
if($xPath=fopen($xFile,'r'))
{
$xContent=unserialize(fread($xPath,filesize($xFile)));
fclose($xPath);
}

 

and serializing / writing.

 

if($xPath=fopen($xFile,'w'))
{
fwrite($xPath,serialize($xContent));
fclose($xPath);
} 

 

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.