note 74450 added to ref.pspell
| From: | fragment at osu1 dot php dot net | Date: | Thu, 12 Apr 2007 05:12:01 +0000 |
| Subject: | note 74450 added to ref.pspell | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-125316@lists.php.net to get a copy of this message | ||
To get round the error on Windows where the word list can't be found inside functions, take the
call to pspell_new() out of the function and pass the return value to your function, i.e.
<?
function testSpell($pspell_link) {
echo pspell_check($pspell_link, "test") ? 'OK' : 'Not OK';
}
$pspell_link = pspell_new("en");
testSpell($pspell_link);
?>
----
Server IP: 69.147.83.197
Probable Submitter: 121.72.237.238 (proxied: 121.72.237.238)
----
Manual Page -- http://www.php.net/manual/en/ref.pspell.php
Edit -- https://master.php.net/note/edit/74450
Del: integrated -- https://master.php.net/note/delete/74450/integrated
Del: useless -- https://master.php.net/note/delete/74450/useless
Del: bad code -- https://master.php.net/note/delete/74450/bad+code
Del: spam -- https://master.php.net/note/delete/74450/spam
Del: non-english -- https://master.php.net/note/delete/74450/non-english
Del: in docs -- https://master.php.net/note/delete/74450/in+docs
Del: other reasons-- https://master.php.net/note/delete/74450
Reject -- https://master.php.net/note/reject/74450
Search -- https://master.php.net/manage/user-notes.php