Re: PHP running perl running java OR PHP running java?

From: Date: Sat, 04 Jan 2003 01:41:25 +0000
Subject: Re: PHP running perl running java OR PHP running java?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-130193@lists.php.net to get a copy of this message
Try backticks $yo = java PFProJava test-payflow.verisign.com 443 ... 30; echo $yo; Andrew ----- Original Message ----- From: "Sam" <php@itab.com> To: "PHP" <php-general@lists.php.net> Sent: Saturday, January 04, 2003 1:37 AM Subject: [PHP] PHP running perl running java OR PHP running java? > > I'm in way over my head. > > the "..." below are where I chopped stuff out for clarity. > > The perl script "javatest.pl": > > $ENV{LD_LIBRARY_PATH} .=":.:..:../lib"; > $ENV{CLASSPATH} .= ":Verisign.jar:."; > print javac PFProJava.java; > print java PFProJava test-payflow.verisign.com 443 ... 30;; > > me% perl javatest.pl > RESULT= ... Approved&AUTHCODE ... > > AND > > % java PFProJava test-payflow.verisign.com 443 ... 30 > > Works at the command line IF the perl script has been ran at least once from > the same shell. (Must need to have those environments set maybe.) > > STUPID things I've tried in PHP. > > <? $yo = exec("./testjava.pl); echo $yo ; ?> > Returns nothing. > > <? $yo = passthru("perl testjava.pl); echo $yo ; ?> > Nada. > > <? > $cmd = "java PFProJava test-payflow.verisign.com 443 ... 30"; > $yo = exec($cmd); > echo $yo ; > ?> > zip. > > Any help would be greatly appreciated. > > Sam > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > >

« previous php.general (#130193) next »