Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> Jak zainstalować ASPELL
tomeknh
post 18.12.2007, 21:00:20
Post #1





Grupa: Zarejestrowani
Postów: 90
Pomógł: 0
Dołączył: 2.12.2007

Ostrzeżenie: (0%)
-----


witam,

wywala mi błąd przy skrypcie:
Kod: Fatal error: Call to undefined function: pspell_config_personal() in spell_checker.php on line 54

i tu pytanie jak zainstalować ASPELL - bo to jest wymagane do poprawnego działania? hmm kombinuję już pół dnia, i dalej lipa.

Próbowałem do php.ini dodać with-aspell=D:\Aspell\bin\aspell-15.dll i nic...

Ten post edytował tomeknh 18.12.2007, 21:15:30
Go to the top of the page
+Quote Post
Jojo
post 20.12.2007, 13:53:15
Post #2





Grupa: Zarejestrowani
Postów: 405
Pomógł: 1
Dołączył: 19.09.2003
Skąd: Lublin

Ostrzeżenie: (0%)
-----


Manual się kłania (http://pl.php.net/manual/pl/ref.pspell.php):
Cytat
In order to enable this module under Windows, you must copy aspell-15.dll from the bin folder of your aspell installation to a folder where PHP will be able to find it. C:\PHP or the SYSTEM32 folder of your Windows machine (Ex: C:\WINNT\SYSTEM32 or C:\WINDOWS\SYSTEM32) are good choices.


--------------------
Rozwój cywilizacji informatycznej to wyścig między programistami, którzy wytwarzają coraz łatwiejsze
programy użytkowe dla idiotów, a światem produkującym coraz lepszych gatunkowo idiotów.

Blog: Małolepszy.info
Go to the top of the page
+Quote Post
tomeknh
post 21.12.2007, 20:29:10
Post #3





Grupa: Zarejestrowani
Postów: 90
Pomógł: 0
Dołączył: 2.12.2007

Ostrzeżenie: (0%)
-----


Ok. Zainstalowane a teraz drugi problem - problem ze słownikami...
zainstalowałem: Aspell-0-50-3-3-Setup.exe potem Aspell-pl-0.50-2-3.exe, pliki skopiowane, w php.ini odblokowany extension...
Odpalam skrypt i wywala: Internal Server Error! .... no to patrzę do error.log i

Cytat
[Fri Dec 21 20:26:49 2007] [error] [client 127.0.0.1] Premature end of script headers: php.exe, referer: http://localhost/www/
[Fri Dec 21 20:26:49 2007] [error] [client 127.0.0.1] \r, referer: http://localhost/www/
[Fri Dec 21 20:26:49 2007] [error] [client 127.0.0.1] This application has requested the Runtime to terminate it in an unusual way., referer: http://localhost/www/
[Fri Dec 21 20:26:49 2007] [error] [client 127.0.0.1] Please contact the application's support team for more information.\r, referer: http://localhost/www/
[Fri Dec 21 20:26:49 2007] [error] [client 127.0.0.1] Unhandled Error: D:\\Aspell\\dict/pl.rws: The file "D:\\Aspell\\data/iso8859-2.dat" is not in the proper format., referer: http://localhost/www/


Czyli nie odpowiedni format maja pliki...domyślam się że to wina różnic Aspell 0.50.3.3 i zainstalowane do niego słowniki PL 0.50.2.3, z tym że nie mogę nigdzie znaleźć słowników do 3.3 i viceversa...




Znalazlem takie coś:

6.1 Installing the Aspell Program, English Dictionary and Pspell PHP Extension
  1. First run the Aspell setup program, the version I downloaded was called Aspell-0-50-3-3-Setup.exe
  2. When Aspell is installed, install Aspell-en-0.50-2-3.exe , the English language dictionary (other languages are also available).
  3. Now in the extension section of the php.ini file, replace the line:

    ; extension=php_pspell.dll

    with

    extension=php_pspell.dll

    (or create this line if it does not already exist)
  4. You might want to add the path to the Aspell executable, normally C:\Program Files\Aspell\bin , to the path variable. In that location you will find the Aspell console application, as well as a couple of DLLs.
  5. Copy the DLL aspell-15.dll to C:\PHP .
  6. Now when you check your PHP info page, you should now an entry for pspell saying that it is enabled.
No i według tego wszystko robię dobrze...hmm tylko dla pewności o co dokładnie chodzi w 4 punkcie? I czemu wg. 5 ptk. pliki kopiujemy do C:\PHP a nie C:\Windows?

Ten post edytował tomeknh 21.12.2007, 22:13:04
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
1 Użytkowników czyta ten temat (1 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Wersja Lo-Fi Aktualny czas: 28.04.2024 - 18:40