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 page), is there a way to pass these values to perl script.
Please let me know if this method is right and is there any other way. On Sun, Mar 29, 2015 at 6:19 PM, Ron Savage <r...@savage.net.au> wrote: > 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 is not installed, and cannot be > installed without the bug fixes. > > On 30/03/15 11:07, Uday Shankar Kintali wrote: > >> 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 <r...@savage.net.au >> <mailto:r...@savage.net.au>> wrote: >> >> 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 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. <?php >> >> 2. $perl = Perl::getInstance(); >> 3. ?> >> >> >> code. I took reference from this link >> :http://www.linuxjournal.com/__article/9282?page=0,1 >> <http://www.linuxjournal.com/article/9282?page=0,1> >> >> I think installation of PHP Interpreter did not happen properly >> , but I am not sure how to check it. >> >> >> Could you please give some reference where I can get information >> regarding calling perl script from PHP page. >> >> >> On Sun, Mar 29, 2015 at 2:34 PM, Ron Savage <r...@savage.net.au >> <mailto:r...@savage.net.au> >> <mailto:r...@savage.net.au <mailto:r...@savage.net.au>>> wrote: >> >> Hi Uday >> >> PHP is not on CPAN. >> >> Install it from somewhere like >> http://au2.php.net/downloads.____php >> <http://au2.php.net/downloads.__php> >> <http://au2.php.net/downloads.__php >> <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 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 point me to any resources from which I can >> take some help? >> >> -- >> Regards, >> Uday Shankar Kintali >> 520-548-9039 <tel:520-548-9039> <tel:520-548-9039 >> <tel:520-548-9039>> >> >> >> -- >> Ron Savage - savage.net.au <http://savage.net.au> >> <http://savage.net.au> >> >> >> >> >> -- >> Regards, >> Uday Shankar Kintali >> 520-548-9039 <tel:520-548-9039> >> >> >> -- >> Ron Savage - savage.net.au <http://savage.net.au> >> >> >> >> >> -- >> Regards, >> Uday Shankar Kintali >> 520-548-9039 >> > > -- > Ron Savage - savage.net.au > -- Regards, Uday Shankar Kintali 520-548-9039