Re: how can one run python script in php

From: Date: Wed, 08 Dec 2010 23:31:10 +0000
Subject: Re: how can one run python script in php
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-309920@lists.php.net to get a copy of this message
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

« previous php.general (#309920) next »