Re: how can one run python script in php

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Dec 8, 2010, at 5:50 PM, Moses wrote:

> Hi Everyone,
> 
> I am trying to run a python script in php using exec or system command, but
> there is
> no answer.
> 
> musa

I agree we need to see what you have done and on what OS but something like this is what you should be looking at:

$data_from_stdout = exec("/usr/bin/python /path/to/your/python_app.py");

Tom


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux