How to pass PHP Object to Python and Vice Versa -
i attempting develop functionality involves 3 programs.
program (python): places request program b.
program b (php): processes request program , gives program c.
program c (python): processes data program b , returns object program b.
in end, execution flow want follows:
a (data) -> b (data) -> c (data) -> c (object) -> b (object) -> (object)
so how can "transfer/pass" python/php object between 2 languages?
does involve sort of object serialization?
update: more specific, data want transfer class object created in python. i.e.:
class foo: def __init__(self): data = 42 name = 'bar'
if want exchange objects between python php, let's example sending python dictionary php , reads array, can consider using rpc serialization framework such as:
Comments
Post a Comment