By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,538 Members | 1,428 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,538 IT Pros & Developers. It's quick & easy.

marshalling python data structures in php

P: n/a
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
Share this Question
Share on Google+
2 Replies


P: n/a
-----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

P: n/a
> 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.