php and python: how to unpickle using PHP?

Tim Arnold tiarno at sas.com
Tue Oct 3 11:07:22 EDT 2006


<bearophileHUGS at lycos.com> wrote in message 
news:1159825509.493262.11490 at h48g2000cwc.googlegroups.com...
> 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.

wddx format is a workable solution as well

http://pyxml.sourceforge.net/
plus
http://us2.php.net/wddx





More information about the Python-list mailing list