On 28 Jul 2000, at 18:05, David Norris wrote:
> firstname.lastname@example.org wrote:
> > At this moment, I am writting a C library and a perl module
> > to use swish-e's capabilities directly from perl, C and perhaps
> > PHP. I have the C library almost finished and
> > I am working in the xs and pm files for the perl module.
> I can have a go at a PHP module if you do not have time. I've never
> built a PHP module, but, I am certianly willing to try. I am more than
> eager to get a working PHP module! ;-)
I have never built a PHP module. In fact, this is my second perl
module. The first one was much more simple.
The C library is in a very alpha implementation. Basically, I use a
struct (very similar to the C standard FILE struct) to handle all the
struct SWISH *handle=SwishOpen(); /* Reads headers of index
struct result=SwishNext(handle) /* Reads result and advances
SwishClose(handle) /* Release memory */
There are other functions in mind like:
/* returns header values by name */
/* Like fseek(fp,position,0) */
When I have a more decent library, I will inform you.
Received on Tue Aug 1 02:14:14 2000