Saturday, February 5, 2011

How do I parse a PHP serialized datastructure in Java?

I have a system that combines the best and worst of Java and PHP. I am trying to migrate a component that was once written in PHP into a Java One.

Does anyone have some tips for how I can parse a PHP serialized datastructure in Java? By serialized I mean output from php's serialize function.

  • PHP serializes to a simple text-based format. PHPSerialize looks like a parser written in Java. You can also port the Python implementation to Java -- I doubt it's very complex.

    Allain Lalonde : Perfect a library. You're right it's not complex, just didn't want to reinvent the wheel if I didn't have to. thanks.

0 comments:

Post a Comment