On Fri, 28 Jul 2006 16:39:00 -0400, Jim Pingle <[EMAIL PROTECTED]> wrote:
> till wrote:
>> Not to start a flame war, but I am not sure if PHP is designed to run
>> as a server. I know that people do it - the flickr people posted some
>> interesting stuff about this (memory leaks).
> 
> I don't believe he was meaning port it as a PHP server, but rather mimic
> its
> functionality in PHP. Even if it was run as a server and written in PHP
> the
> same problem would be there - namely, that it requires admin access to run
> an additional process rather than being a PHP page/program.
> 
>> I don't see what is wrong to "integrate" (plugin api) this with RC
>> even if it's not written in PHP.
> 
> There is nothing wrong with having it, it's just not ideal. Many potential
> RC users would be running it in hosted space or on servers that they do
> not
> control. For them, a separate server process may be out of the question.
> 
> Jim

Hi,

Sorry for the confusion.  I did indeed mean that we'd aim to mimic the same 
functionality from within a simple PHP page which could be included as part of 
the RoundCube code.  In theory, RoundCube could easily support any of the 3 
possibilities (PHP port, the Nox service in Python, or GoogleSpell) since all 
three use essentially the same output syntax.  All that is required is to 
change the URL/port to which the spelling code connects.  This could be a 
config option, with the default being Google (since it requires no additional 
software to be loaded on the server).

Moving forward, I have an implementation question.  From PHP, there are two 
ways we can talk to ASpell.  One is the same as the Nox server's approach which 
is to execute and process command line output.  The other is to use PHP's 
PSpell library.  As I understand it, there are two issues here: 1. The command 
line option can be restricted for (obvious) security restrictions.  2. PSpell 
library has to be enabled.

I want to choose the option that has the greatest chance of being acceptable to 
admins and the least burden for setting up...  Do most PHP environments allow 
command execution 'out-of-the-box'?  If not, my feeling is that for anyone to 
use ASpell they'll need to install ASpell anyway so enabling the library 
extension probably isn't an unreasonable expectation.  And we don't need to 
have a config parameter in RoundCube directly to deal with the path to ASpell's 
executable, which is another advantage.

Anyone have advice/thoughts on which is the preferrable route?

Thanks!

Andrew




Reply via email to