Reply to Re: printing python script execution inside php

Your name:

Reply:


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).

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация