Hello all: This is very off-topic but thought one of you might have some ideas for me. I've been using a webmail tool called "V-Webmail" but its apparently become broken after some of the latest updates to Apache and PHP4. So I decided to use Squirrelmail. Problem is that I need to get a readable file from the address book file that V-Webmail creates. the file looks like its a serialized file containing a data structure written out to disk. Does anybody have any idea how one would parse out or read the this type of file? I can pick out certain things such as names and email addresses, but the file has weird tag names and other such stuff that I don't understand. I know, it's a stretch.. I probably didn't say enough for anybody to know what I'm talking about.. Take care, Jim
Jim Norton wrote:
Hello all:
This is very off-topic but thought one of you might have some ideas for me. I've been using a webmail tool called "V-Webmail" but its apparently become broken after some of the latest updates to Apache and PHP4.
So I decided to use Squirrelmail. Problem is that I need to get a readable file from the address book file that V-Webmail creates. the file looks like its a serialized file containing a data structure written out to disk.
Does anybody have any idea how one would parse out or read the this type of file? I can pick out certain things such as names and email addresses, but the file has weird tag names and other such stuff that I don't understand.
PHP has two main ways to serialize stuff. PHP's own internal method and WDDX. If the block of data you need to unravel is in either of these then for de-serialization: 1) PHP's internal method: $new = unserialize($data) 2) WDDX: $new = wddx_deserialize($data) and a subsequent print_r($new) should give on stdout a human-comprehensible result. Check out the manual on these two about the details. http://www.php.net/manual/en/ If another way it's used, maybe you can dig out the respective snippet from the source and reverse the process. -Stathis.
I know, it's a stretch.. I probably didn't say enough for anybody to know what I'm talking about..
Take care, Jim
-- Rouvas Stathis rouvas@di.uoa.gr http://www.di.uoa.gr/~rouvas
participants (2)
-
jrn@oregonhanggliding.com
-
Rouvas Stathis