No proper documentation to install php interpreter

2015-03-29 Thread Uday Shankar Kintali
Hi, I am trying to install php interpreter so that I can call a perl script from with in a php file. I tried to install PHP interpreter from CPAN module but haven't been able to call a perl script from php file. The error I get when I try to call perl from PHP is : class Perl not set. Could you po

Re: No proper documentation to install php interpreter

2015-03-29 Thread Ron Savage
Hi Uday PHP is not on CPAN. Install it from somewhere like http://au2.php.net/downloads.php On 30/03/15 04:04, Uday Shankar Kintali wrote: Hi, I am trying to install php interpreter so that I can call a perl script from with in a php file. I tried to install PHP interpreter from CPAN module bu

Re: No proper documentation to install php interpreter

2015-03-29 Thread Ron Savage
Hi Uday Hmm. Interesting. Did you write/copy a series of tiny/small test programs, to determine if PHP::Interpreter actually runs? This is all before trying to use it in a real piece of code. On 30/03/15 10:39, Uday Shankar Kintali wrote: Thank you for the message, Sir. I have php installe

Re: No proper documentation to install php interpreter

2015-03-29 Thread Ron Savage
Hi Uday PHP::Interpreter needs someone to fix all its bugs before it can be installed under Perl 5.20.2. Install the Perl module Module::Version, and run: mversion PHP::Interpreter And install Module::Path, and run: mpath PHP::Interpreter I suspect you'll find PHP::Interpreter

Re: No proper documentation to install php interpreter

2015-03-29 Thread Ron Savage
Hi Uday System is good, but you're much better off using Capture::Tiny with a try block managed by Try::Tiny. Lastly, please refer to https://www.perl.org/ for better way to discuss these issues. Over and out :-). On 30/03/15 13:34, Uday Shankar Kintali wrote: Okay, in that case I will go

Re: No proper documentation to install php interpreter

2015-03-29 Thread Uday Shankar Kintali
Okay, in that case I will go with something other than php::interpreter. I found a function called system to call the perl script from php code and it does call the perl script, what I am looking for is the form in php page passes some parameters ( options which are selected by the user on php pag

Re: No proper documentation to install php interpreter

2015-03-29 Thread Uday Shankar Kintali
I did try just to write use PHP::Interpreter inside a perl code and then call that script inside php code, that failed . That means there was a problem with the PHP::Interpreter, I looked around a lot, but not many things are helpful. On Sun, Mar 29, 2015 at 5:00 PM, Ron Savage wrote: > Hi Uday

Re: No proper documentation to install php interpreter

2015-03-29 Thread Uday Shankar Kintali
Thank you for the message, Sir. I have php installed on the server to which I am connecting. The issue is to call a perl script from PHP code. For this, I read that installing PHP interpreter from CPAN module will be helpful. I installed it and then tried to instantiate using 1. code. I took re

Re: No proper documentation to install php interpreter

2015-03-29 Thread Tony Cook
On Mon, Mar 30, 2015 at 02:01:25PM +1100, Ron Savage wrote: > Hi Uday > > System is good, but you're much better off using Capture::Tiny with > a try block managed by Try::Tiny. > > Lastly, please refer to https://www.perl.org/ for better way to > discuss these issues. >From the first message in

Re: No proper documentation to install php interpreter

2015-03-29 Thread Uday Shankar Kintali
Tony, yeah PHP::Interpreter was wrong. I am now looking at system function, using this I am able to call perl script. Looking if I can pass on the user selected values ( in php form) to the perl script. On Sun, Mar 29, 2015 at 8:20 PM, Tony Cook wrote: > On Mon, Mar 30, 2015 at 02:01:25PM +1100,

Re: No proper documentation to install php interpreter

2015-03-30 Thread yary
I moved this question & an answer for you to PerlMonks, a more approrpriate venue for questions such as this. See http://www.perlmonks.org/?node_id=1121859

Re: No proper documentation to install php interpreter

2015-03-30 Thread Uday Shankar Kintali
Thanks, yary. I will follow up there. On Mon, Mar 30, 2015 at 8:55 AM, yary wrote: > I moved this question & an answer for you to PerlMonks, a more > approrpriate venue for questions such as this. See > http://www.perlmonks.org/?node_id=1121859 > -- Regards, Uday Shankar Kintali 520-548-9039

Re: No proper documentation to install php interpreter

2015-03-30 Thread Uday Shankar Kintali
Tony, Ron suggested Capture:Tiny, do you have any other ways other than what Ron and I talked about. I am also looking at the perl forums Ron referred me to. On Sun, Mar 29, 2015 at 8:26 PM, Uday Shankar Kintali < udayshank...@email.arizona.edu> wrote: > Tony, yeah PHP::Interpreter was wrong. I a

Re: No proper documentation to install php interpreter

2015-03-30 Thread Jed Lund
Uday, If Capture::Tiny works for you, then you should use that. However if you are looking to build a custom capture of STDIN in your program a good start is to read the perldocs on readline and perlopentut