Skip to main content.
home | support | download

Back to List Archive

Re: [swish-e] Swish-e Module with PHP

From: David Norris <dave(at)not-real.webaugur.com>
Date: Thu Mar 05 2009 - 20:06:04 GMT
On Thu, Mar 5, 2009 at 2:29 PM, Zhou Xiang <xiz407@gmail.com> wrote:
> <?php
> if(!extension_loaded('swish')) {
> 	dl('/usr/local/swish-0.3.0/modules/swish.so');
> }

You will need to place the swish.so file in your /usr/lib/php/modules
as per the phpinfo() output you posted.  make install should have
copied it there for you.  dl('swish.so') should work once the file is
placed in your modules directory.

If it does not then enable E_WARNING and PHP will emit an explanation
of exactly what's wrong via your logging mechanism (prints to the
screen by default).  dl() returns FALSE to inform you of a failure to
load the module, also.

In production code you should load the module via PHP configuration
directives (php.ini) as dl() is no longer a supported mechanism in
PHP.  dl() has been removed from PHP6. That script was just a quick
sanity check, really.

-- 
   David L Norris
   http://webaugur.com/
_______________________________________________
Users mailing list
Users@lists.swish-e.org
http://lists.swish-e.org/listinfo/users
Received on Thu Mar 5 15:06:03 2009