[mod_python] help!: modpython, howto pass results to a running php script?

Gregory (Grisha) Trubetskoy grisha at modpython.org
Sun Aug 24 13:05:02 EST 2003


I don't know first thing about PHP, but if it has a way of making a
sub-request and then capturing its output, that would be one way. Or if
PHP has access to request notes (req.notes in mod_python), there is
probably some way to use them as a way to pass information.

Grishas

On Sat, 23 Aug 2003, Rix Sanctuary wrote:

>
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
>
> Hi there!
>
> Have a python calculation module and I would like to include/work with the results in a seperate php script.
> My code runs in a box with Apache/2.0.47(win32) mod_python/3.0.3 Python 2.2.3 Php/4.3.2
>
> My python module is called from a php script like this:
>     <?php require 'http://localhost/xxx/calc.py/'; ?>
>
>    PHP   <----   CALC.PY    <----  BIGCALC.PY
> 			  |
> 			  |
> 	from mod_python import apache
>  	import bigcalc
>
> Is there an easy way to use the results yield by my python module in my php script as local variables?
>
> Thanks in advance
> rix
>
> -----BEGIN PGP SIGNATURE-----
> Version: PGP 8.0
>
> iQA/AwUBP0euyhvgnt8VShhuEQLFngCaAoRawlJ9dMWyt3K9lNLge50QZa8AoMFc
> QDO/ZjGHWV1PG889q/+ItxvJ
> =erGk
> -----END PGP SIGNATURE-----
>
>
>
> _______________________________________________
> Mod_python mailing list
> Mod_python at modpython.org
> http://mailman.modpython.org/mailman/listinfo/mod_python
>


More information about the Mod_python mailing list