Hi,

I am having real problems getting Pspell to work with PHP. I have 
recently installed:

apache 1.3.20
php 4.0.6
pspell .12.2
aspell .33.6.3

I have installed pspell and aspell with the prefix /usr/local/pspell

when I run ./aspell from the command line it works fine and when I 
complile and run the program example-c from the pspell examples 
directory it works perfectly.

I used the folling command line to configure PHP:

./configure --with-mysql=/usr/local/mysql --with-xml --with-
curl=/usr/local/curl --enable-shared-pdflib --enable-track-vars --
with-apxs=/usr/local/apache/bin/apxs  --with-pspell=/usr/local/pspell

This means that I have to alter the code in <php-
source>/ext/pspell/pspell.c so that the line that reads:

#include <pspell/pspell.h>

now reads:

#include </usr/local/pspell/include/pspell/pspell.h>

the whole lot then compiles perfectly.

But when I try running the following code from the examples on the 
php.net website:

<?
$pspell_link = pspell_new ("en");

if (pspell_check ($pspell_link, "testt")) {
    echo "This is a valid spelling";
} else {
    echo "Sorry, wrong spelling";
}
?>

I get a message from Netscape saying that the document contained no 
data and when I see if a header was returned there is none.

I have looked in the apache error log and I can't see anything. I 
have now turned on logging for PHP but nothing appears.

Does anyone have any ideas as to why this is not working?

I can't think of much else to try? Do I reall need to install aspell 
and pspell with the prefix=/usr/local Can't I code the location of 
the libraries etc in to PHP?

Thanks

Nick
-- 
Nick Foster
mailto:[EMAIL PROTECTED]
http://www.weblocust.co.uk/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to