Re: unable to load perl extension
| From: | dev lamp | Date: | Sat, 31 Dec 2005 14:46:41 +0000 |
| Subject: | Re: unable to load perl extension | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-228061@lists.php.net to get a copy of this message | ||
On 12/31/05, Richard Lynch <ceo@l-i-e.com> wrote:
> On Thu, December 29, 2005 9:17 am, dev lamp wrote:
> > Scenario 2:
> > the perl extension does not get loaded and the PHP script crashes.
>
> Define "crashes"...
>
> Does it literally crash the PHP/Apache process, or does it just print
> out "Not loaded"?
>
It just prints "Not loaded".
> Either way, crank up your error settings to E_ALL and check your
> Apache error log to find out *WHY* it's not getting loaded.
>
> Could you live with:
> <?php
> exec("/usr/local/bin/perl script.pl", $output, $error);
> $output = implode("<br />\n", $output);
> if ($error) die("OS Error: $error<br />\n$output");
> echo $output; //probably do something more interesting here
> ?>
>
Well, I would like to avoid this, since the PERL objects have to be used
and want to invoke methods.
thanks for your time.
thanks
Dev.