marshalling python data structures in php

Jon-Pierre Gentil jgentil at sebistar.net
Tue Mar 30 01:50:36 EST 2004


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Sridhar R wrote:
| Hi,
|
| I have written in network project in python.  the client sends a
| dictionary by pickling it over the socket and the server unpickles it.
|  I also need a webclient for this.  So I am wondering how to create
| python dictionary in PHP and pickle it and send it to the server
| running in python.
|
| any thoughts?

Sounds utterly hard.  You'd have to implement the Pickle module in PHP
and devise a way to convert a PHP associative array into a pickled
Python dictionary.

Instead what I would suggest that you do is to write your webclient in
Python using mod_python/Zope/Twisted.Web/etc...

- --
::  Jon-Pierre Gentil
::  PGP Key ID 0xA21BC30E
::  Jabber: jgentil at jabber.org
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iEYEARECAAYFAkBpGLoACgkQOrVFmaIbww5k7ACgkpQ+TcbKQXoqo2JtAWW6dN4U
cokAn2hppk37ilKcM1hAu7J9X4N2Q48r
=8OAg
-----END PGP SIGNATURE-----



More information about the Python-list mailing list