php and python: how to unpickle using PHP?

bearophileHUGS at lycos.com bearophileHUGS at lycos.com
Mon Oct 2 23:45:09 CEST 2006


Ted Zeng:
> I store some test results into a database after I use python
> To pickle them (say, misfiles=['file1','file2'])
> Now I want to display the result on a web page which uses PHP.
> How could the web page unpickle the results and display them?
> Is there a PHP routine that can do unpickle ?

Instead of pickling, maybe you can save the data from python in json
format:
http://www.json.org/
Then you can read it from PHP.

Bye,
bearophile




More information about the Python-list mailing list