Posted by tynril on 10/23/07 11:15
On 23 oct, 11:04, sami <sami....@gmail.com> wrote:
> Hi
>
> Is it possible to print the output of a Python script inside PHP? e.g.
> I have a python script that has the contens:
>
> pyScript.py:
>
> #!/usr/bin/python
> print "hello world"
>
> and I have a PHP script phpScript.php:
>
> <?php
>
> -- Execute pyScript.py here and print its output to stdout ("hello
> world") here
>
> ?>
>
> I found PiP but that is for embedding Python code inside PHP
>
> Thanks
>
> Sami
Hi Sami,
You can do it by using the exec function (http://www.php.net/manual/en/
function.exec.php).
Navigation:
[Reply to this message]
|