Home > Archive > PERL Beginners > February 2007 > Calling perl script from PHP
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Calling perl script from PHP
|
|
| rahulthathoo 2007-02-23, 3:59 am |
| Hi.
I dont know if this is the right place to be asking this, but I need
to develop a web based application which uses php for the front end
and statistical manipulations in perl - my question is - how do i call
a perl script from php - i guess the answer is gonna be exec. I cant
seem to understand how can i pass variables from the PHP script to the
Perl script and vice versa using exec? Is there a better way to go
about it?
Rahul
| |
| rahulthathoo 2007-02-23, 3:59 am |
| Apart from this, another question that I had was - once the perl
script is done running - and has completed successfully, how do i know
in the php script that this has happened - coz i need to do something
the moment it(perl script) finished exection?
Rahul
| |
| Paul Lalli 2007-02-23, 7:01 pm |
| On Feb 23, 12:21 am, "rahulthathoo" <rahul.that...@gmail.com> wrote:
> I dont know if this is the right place to be asking this,
It's not.
> but I need
> to develop a web based application which uses php for the front end
> and statistical manipulations in perl - my question is - how do i call
> a perl script from php - i guess the answer is gonna be exec. I cant
> seem to understand how can i pass variables from the PHP script to the
> Perl script and vice versa using exec? Is there a better way to go
> about it?
Explain how your question would be different if you wanted your PHP
script to call a program written in Java or C++?
You have a PHP question. You should ask a PHP group "how do I call an
external program". The language with which that program is written is
irrelevant.
Paul Lalli
|
|
|
|
|