aspell-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [Aspell-user] PHP Windows CGI error


From: Chris Young
Subject: RE: [Aspell-user] PHP Windows CGI error
Date: Fri, 16 Apr 2004 09:58:16 -0400

I have also recently had problems accessing Aspell through PHP's functions. I think they were written for a much earlier version of pspell and are very limited.
 
I did get them to work on Linux using Aspell version .33, but I could not access a custom dictionary I set up so I gave up and used shell_exec to run Aspell from a command line pipe.
 
I would suggest not using the PHP function and just run a shell command. That PHP library needs to be updated and I believe someone is working on it. You have to do a little more work to parse the input you get back from running a shell command but once you set it up, the benefit of getting access to all of Aspell's features is worth it.
 
Here is a link to an example of how to do it: http://chxo.com/scripts/spellcheck.php
 
Click the View Source link to see the code.
 
Chris Young

Synergy Point
Toll Free: (877) 859-6370
Local: (828) 859-2444
Fax: (877) 633-5373
 
-----Original Message-----
From: address@hidden [mailto:address@hidden On Behalf Of Rachel Green
Sent: Friday, April 16, 2004 9:48 AM
To: address@hidden
Subject: [Aspell-user] PHP Windows CGI error

I have installed Aspell -0.50.3 on my machine which runs Windows 2000 Professional Service Pack 4.  I am using IIS 5 and PHP version 4.3.6.

The Aspell program works fine from the command line, but when I try and use the pspell functions in a PHP page I get the following error message:

CGI Error

The specified CGI application misbehaved by not returning a complete set of HTTP headers. The headers it did return are:

abnormal program termination
Unhandled Error: C:\Program Files\Aspell\dict/en-only.rws: The file "C:\Program Files\Aspell\data/iso8859-1.dat" is not in the proper format.
If I do a phpinfo() PHP tells me that the pspell functions are enabled, but it refuses to work.  I have tried a few different dictonaries with the same result.

Has anyone come across this problem and could offer advice?

Thanks

reply via email to

[Prev in Thread] Current Thread [Next in Thread]