Re: Perl > PHP
| From: | Jurre Thiel | Date: | Sun, 05 Jan 2003 12:34:05 +0000 |
| Subject: | Re: Perl > PHP | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-130314@lists.php.net to get a copy of this message | ||
That doesn't make any sense and has nothing to do with Perl, since PHP will
magically convert perl.pl to 'perl.pl'. I think you should do something
like:
<?php exec('perl perl.pl'); ?>
Assumming you are on an Unix enviroment and Perl is installed.
"Leif K-Brooks" <eurleif@buyer-brokerage.com> schreef in bericht
news:3E1784B3.1060205@buyer-brokerage.com...
> Not good at perl, but you need to do:
> <?php exec('perl.pl'); ?>
>
> Sam wrote:
>
> >I don't know what the heck this is but it works:
> >
> >#!/usr/bin/perl
> >
> >$ENV{LD_LIBRARY_PATH} .=":.:..:../lib";
> >$ENV{CLASSPATH} .= ":Verisign.jar:.";
> >print
javac PFProJava.java;
> >print java PFProJava test-payflow.verisignscks.com;
> >
> >How can it be done with PHP?
> >
> >OR
> >
> >run the perl script from a PHP script.
> >
> ><? exec(perl.pl) ?>
> >
> >didn't work.
> >
> >Thanks,
> >Sam
> >
> >
> >
> >
>
> --
> The above message is encrypted with double rot13 encoding. Any
unauthorized attempt to decrypt it will be prosecuted to the full extent of
the law.
>
>
>