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

Reply via email to