Page 1 of 1
Testlink calling Python
Posted: Wed Jul 27, 2011 8:33 am
by Annie
Hi,
I want to ask, testlink can call python ?
How to to ?
Thanks!
Re: Testlink calling Python
Posted: Thu Jul 28, 2011 3:18 am
by TurboPT
Annie wrote:Hi,
I want to ask, testlink can call python ?
As long as the phone# is correct!
Just kidding! What are you trying to achive, or do?
There is NOT enough detail in your question.
On the surface, I would say no, as PHP and Python have two different interpreters. But again, we would need more details about the desired goal.
Re: Testlink calling Python
Posted: Thu Jul 28, 2011 11:13 am
by Annie
Hi ,
Thanks, TurboPT .
I made a mistake, and should be PHP call python.
I already know how to do it, this:
exec("python getbugcount.py ");//shell_exec OR passthru
It working.
Re: Testlink calling Python
Posted: Thu Jul 28, 2011 11:37 am
by TurboPT
Annie wrote:
.. should be PHP call python.
I already know how to do it, this:
exec("python getbugcount.py ");//shell_exec OR passthru
It working.
Yes, it could definitely work that way. Thank you for replying with the discovery.