[prev in list] [next in list] [prev in thread] [next in thread]
List: aspell-user
Subject: RE: [Aspell-user] PHP Windows CGI error
From: "Chris Young" <chrisyoung () synergypoint ! net>
Date: 2004-04-16 13:58:16
Message-ID: 117632F2CE6B3D4CADEE4B4A884177B3028736 () winserver ! SynergyPoint ! local
[Download RAW message or body]
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
Web: http://www.synergypoint.net <http://www.synergypoint.net/>
-----Original Message-----
From: aspell-user-bounces+chrisyoung=synergypoint.net@gnu.org
[mailto:aspell-user-bounces+chrisyoung=synergypoint.net@gnu.org] On
Behalf Of Rachel Green
Sent: Friday, April 16, 2004 9:48 AM
To: aspell-user@gnu.org
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
[Attachment #3 (text/html)]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>Message</TITLE>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 5.50.4134.600" name=GENERATOR></HEAD>
<BODY text=#000000 bgColor=#ffffff>
<DIV><SPAN class=976145013-16042004><FONT face=Arial color=#0000ff size=2>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.</FONT></SPAN></DIV>
<DIV><SPAN class=976145013-16042004><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=976145013-16042004><FONT face=Arial color=#0000ff size=2>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.</FONT></SPAN></DIV>
<DIV><SPAN class=976145013-16042004><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=976145013-16042004><FONT face=Arial color=#0000ff size=2>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.</FONT></SPAN></DIV>
<DIV><SPAN class=976145013-16042004><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=976145013-16042004><FONT face=Arial color=#0000ff size=2>Here
is a link to an example of how to do it: <A
href="http://chxo.com/scripts/spellcheck.php">http://chxo.com/scripts/spellcheck.php</A></FONT></SPAN></DIV>
<DIV><SPAN class=976145013-16042004><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=976145013-16042004><FONT face=Arial color=#0000ff size=2>Click
the View Source link to see the code.</FONT></SPAN></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>Chris Young</FONT></DIV><FONT face=Arial
size=2><STRONG>
<DIV align=left><BR>Synergy Point</STRONG></FONT></DIV>
<DIV align=left><FONT face=Arial size=2>Toll Free: (877) 859-6370</FONT></DIV>
<DIV align=left><FONT face=Arial size=2>Local: (828) 859-2444</FONT></DIV>
<DIV align=left><FONT face=Arial size=2>Fax: (877) 633-5373</FONT></DIV>
<DIV align=left><FONT face=Arial size=2>Web: <A
href="http://www.synergypoint.net/">http://www.synergypoint.net</A></FONT></DIV>
<DIV align=left><FONT face=Arial size=2></FONT> </DIV>
<BLOCKQUOTE style="MARGIN-RIGHT: 0px">
<DIV></DIV>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left><FONT
face=Tahoma size=2>-----Original Message-----<BR><B>From:</B>
aspell-user-bounces+chrisyoung=synergypoint.net@gnu.org
[mailto:aspell-user-bounces+chrisyoung=synergypoint.net@gnu.org] <B>On Behalf
Of </B>Rachel Green<BR><B>Sent:</B> Friday, April 16, 2004 9:48
AM<BR><B>To:</B> aspell-user@gnu.org<BR><B>Subject:</B> [Aspell-user] PHP
Windows CGI error<BR><BR></FONT></DIV>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.<BR><BR>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:<BR>
<H1>CGI Error</H1>The specified CGI application misbehaved by not returning a
complete set of HTTP headers. The headers it did return are:
<P></P><PRE>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. </PRE>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.<BR><BR>Has anyone come across this problem and could offer \
advice?<BR><BR>Thanks<BR></BLOCKQUOTE></BODY></HTML>
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic