Hi all. I am having trouble on my godaddy linux shared host site. I am using php scripts as well as perl but I need php to be able to call a perl function. I am fairly new to all of this. I have found a few sites on the web about how to do this and am using a simple test script currently...
<html>
<head>
</head>
<body>
<?php
print "Hello from PHP! ";
$perl = new Perl();
$perl->require("test1.pl");
print "Bye! ";
?>
</body>
</html>
where test1.pl is ...
print "Hello from perl! "
when i run this I get the following output...
Hello from PHP!
Fatal error: Class 'Perl' not found in /home/content/...../hello.php on line 7
I can run php and perl on the site fine but I cannot seem to combine them. From what I can gather, I believe the problem is with a misconfigured php.ini file or if 'pecl' is not installed at all? I am not sure. If this is the case is it possible to even do this stuff on a shared host? If anyone has any ideas I'd greatly appreciate hearing them. Thanks.
<html>
<head>
</head>
<body>
<?php
print "Hello from PHP! ";
$perl = new Perl();
$perl->require("test1.pl");
print "Bye! ";
?>
</body>
</html>
where test1.pl is ...
print "Hello from perl! "
when i run this I get the following output...
Hello from PHP!
Fatal error: Class 'Perl' not found in /home/content/...../hello.php on line 7
I can run php and perl on the site fine but I cannot seem to combine them. From what I can gather, I believe the problem is with a misconfigured php.ini file or if 'pecl' is not installed at all? I am not sure. If this is the case is it possible to even do this stuff on a shared host? If anyone has any ideas I'd greatly appreciate hearing them. Thanks.