albumdb format?

in10ct
in10ct's picture

Joined: 2002-12-22
Posts: 9
Posted: Sun, 2002-12-22 01:48

Can anyone tell me what the albumdb.dat format is? I'm wondering it I have an error in there or something... Mind you, Gallery itself seems to be working perfectly...

 
beckett
beckett's picture

Joined: 2002-08-16
Posts: 3474
Posted: Sun, 2002-12-22 02:37

Hmm... that won't be fun if you've got a corrupted db file.

Those files are just serialized PHP data objects: strings, arrays, objects... in this case albumdb.dat and photos.dat (if you have v1.3.2) combine to make the Album() object for that album. The data's written to file with PHP's serialize() function (and read back with unserialize()!). If you want to inspect the data, grab Bharat's http://codex.gallery2.org/index.php/Downloads:PHP_Deserialize, a Perl script which dumps the data out in human-readable form.

What makes you suspect something's wrong with your db file??

-Beckett (

)

 
in10ct
in10ct's picture

Joined: 2002-12-22
Posts: 9
Posted: Sun, 2002-12-22 03:14

Only that my cach file is always empty... I delete it, it gets recreated as a zero byte file...