We've been asked to support some rather old Perl forms on a new site, as we're using a PHP based CMS we need to include the Perl scripts into our new CMS.
I've tried a bit of shell_exec but that's disabled. Has anyone got any ideas?
There is a Perl extension available for PHP.
An article from the Zend developer zone details it here.
The extension allows you to:
You can obtain it from CVS using this command:
$ cvs -d :pserver:cvs.php.net:/repository co pecl/perl
An example of running a Perl script is listed here:
print "Hello from Perl! "
<?php
print "Hello from PHP! ";
$perl = new Perl();
$perl->require("test1.pl");
print "Bye! ";
?>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With