| PHP + Namazu I found a PHP4 module to access Namazu (fast + free search engine found at http://www.namazu.org/ ) indexes directly from within PHP. I had to ftp to japan (ftp://night.fminn.nagano.nagano.jp/php4/) to obtain the software, but here it is!
Installation of namazu/php:
Download php4_namazu-2.1.0.tar.gz
Build + install php the way you like it cd /tmp/php-4.1.1 ./configure --with-many-options && make && make install i used: ./configure --with-apxs --with-openssl --with-zlib --with-bz2 --enable-ftp \ --with-gd --with-gettext --with-mysql=/usr --with-jpeg-dir=/usr/include --with-ttf \ --enable-gd-native-ttf --with-png-dir=/usr/include --with-zlib-dir=/usr/include \ --with-xpm-dir=/usr/include --with-freetype-dir=/usr/include/freetype2 \ --with-config-file-path=/etc --with-t1lib=/usr/include cd ext
Extract php4_namazu-2.1.0.tar.gz + install
tar xfz /tmp/php4_namazu-2.1.0.tar.gz cd namazu phpize ./configure --with-namazu make && su -c "make install"
*** check ext/namazu/sample for source examples!!
Check path of namazu.so, has to be in /etc/php.ini * extension_dir = /usr/local/lib/php/20010901 (or something)
Source example:
<?
Get the source!
|