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.
I had the same issue and found this library: http://code.google.com/p/serialized-php-parser/
It does exactly what you need
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With