Jump to content

[SOLVED] Best way to call aspell (no pspell availible)


mwookie

Recommended Posts

Helloe all.

 

I am trying to figure out the best wal to call aspell on a string from PHP. I have contacted my web host about using pspell and they say it a no go. I found this snippet on the web:

 

$temptext= tempnam("/tmp", "spelltext");
    
  
    $aspellcommand= "cat $temptext | /usr/local/bin/aspell -a";

 

Basically it is outputting the string to a file and then piping it into aspell. Anything better? Maybe an echo piped?

 

 

Thanks for all your help.

 

______________

"You cannot escape the responsibility of tomorrow by evading it today." Abraham Lincoln

Company – Projects (New Mexico Homes and LandFind cheap photos for your website.)

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.