Has anyone had any experience with this? I have a bunch of perl functions that were written by several of my Perl coworkers. I need to use them in my PHP as I don't want to rewrite them. I don't want to re-invent a wheel that is working just fine .
Anyway, we've been to http://www.zend.com/php5/articles/php5-perl.php and followed the instructions there. When I try to execute my script, I get a fatal error: Class 'Perl' not found in... Here's what I have:
1 <?php
2 $USERID = $_SERVER['PHP_AUTH_USER'];
3 ob_start();
4 $perl = new Perl();
5 $perl->eval('
6 use e::common::SECURITY;
7 my $level = &get_auth_lvl($USERID,"pss");
8 if (!$level) {
9 &dispay_access_denied();
10 }
11 ');
12 ob_end_clean();
Fatal error: Class 'Perl' not found in /data/web/html/pss/logon/telephone_deploy_3.php on line 4
Any ideas?