Skip to main content.
home | support | download

Back to List Archive

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

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

You will need to place the file in your /usr/lib/php/modules
as per the phpinfo() output you posted.  make install should have
copied it there for you.  dl('') 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
Users mailing list
Received on Thu Mar 5 15:06:03 2009