Connecting Tech Pros Worldwide Forums | Help | Site Map

PHP fatal error : Class perl not found

Newbie
 
Join Date: Jul 2008
Posts: 2
#1: Jul 15 '08
Hi,

I have searched around for the solution to this problem, but I am trying to call a perl script from php, and get a fatal error:Class perl not found

I am using php 5.1.6 and apache 2.0 , php and apache is configured fine, as i am able to run <phpinfo()?> with out any problem. I have added php_perl.dll into my php.ini extensions ... and copied it to php/ext folder.

The scripts are very basic (from the source:http://devzone.zend.com/node/view/id/1712)

test.php:
Expand|Select|Wrap|Line Numbers
  1. <?php
  2.  
  3. print "Hello from PHP! ";
  4. //$erl = new Perl();
  5. //$perl->require("test1.pl");
  6. print "Bye! ";
  7.  
  8. ?>
  9.  
test1.pl:
print "Hello from perl! "


Thanks'

PB

Newbie
 
Join Date: Jul 2008
Posts: 2
#2: Jul 15 '08

re: PHP fatal error : Class perl not found


Hi,

I found the solution

I was getting all the steps correct, just made a small path error mistake in the ini file, and damn it took me like 2-3 hours to get to know this...

Now I really know, what all can go wrong when u try php->perl

;)
Newbie
 
Join Date: Oct 2008
Posts: 1
#3: Oct 16 '08

re: PHP fatal error : Class perl not found


Quote:

Originally Posted by pranavb85

Hi,

I found the solution

I was getting all the steps correct, just made a small path error mistake in the ini file, and damn it took me like 2-3 hours to get to know this...

Now I really know, what all can go wrong when u try php->perl

;)


Hey Prana, can you please explain the steps cause i having exactly the same issue, and i have been looking in the php.ini, added the extension=perl.so

but nothing changed.
Reply