470,849 Members | 1,102 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,849 developers. It's quick & easy.

marshalling python data structures in php

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?
Jul 18 '05 #1
2 1809
-----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: jg*****@jabber.org
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iEYEARECAAYFAkBpGLoACgkQOrVFmaIbww5k7ACgkpQ+TcbKQX oqo2JtAWW6dN4U
cokAn2hppk37ilKcM1hAu7J9X4N2Q48r
=8OAg
-----END PGP SIGNATURE-----
Jul 18 '05 #2
> any thoughts?

Use xmlrpc or soap or corba - these are designed for inter-language
operations. There is no need to reinvent the wheel.

--
Regards,

Diez B. Roggisch
Jul 18 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

699 posts views Thread by mike420 | last post: by
3 posts views Thread by PHil Coveney | last post: by
8 posts views Thread by [diegueus9] Diego Andrés Sanabria | last post: by
4 posts views Thread by Animesh | last post: by
2 posts views Thread by ajikoe | last post: by
20 posts views Thread by Mr.SpOOn | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.