Python-PHP bridge?

E

erikcw

Hi all,

I'm starting to translate a large legacy php app to python (django),
and was wondering if anyone knew of a bridge between the 2 languages.
(access php objects from python and vice versa).

Some of the solutions I've come across so far include using php's
passthru() ( http://us3.php.net/passthru ) and pyphp.

passthru(): I'm concerned about the potential performance hit of all
these system calls. Isn't this the equivalent of a CGI app?

pyphp: Seems closer to what I'm looking for, but I haven't been able
to get the examples working yet. Maybe it is to alpha?

If anyone has any experience with these tools or others and can share
some advice, I'd appreciate it!

Thanks!
Erik
 
M

Méta-MCI \(MVP\)

Hi!

Only under Windows, you can use PHPscript. It's the "active-scripting"
release of PHP.
With it, you can send PHP's functions (source), and call these functions
(with parameters).

With the same method, you can also use, from Python, VBscript, Jscript,
PerlScript, RubyScript.

@-salutations

Michel Claveau
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,483
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top