https://help.superhosting.bg/en/php-pspell-aspell.html
  • bg
  • en

Hosting, Domains, Cloud, Virtual Private Servers (VPS), Managed VPS, SSL Certificates

PHP extension - pspell (Portable Spell Checker Interface Library)

PHP
pspell, php pspell, aspell, pspell spellcheck, pspell spell-checking, pspell spelling, pspell check spelling

pspell (Portable Spell Checker Interface Library) is a PHP extension, providing generic interface to the GNU Aspell (C++) system spell-checking library.

Aspell might be used for other programming languages along with specific extensions, such as FFI::Aspell for Ruby or Text:Aspell for Perl.

To check spelling, you can use the pre-installed Aspell language dictionaries or word lists.

info-iconYou can enable pspell in your hosting account via cPanel -> PHP Manager by SuperHosting.

info-iconYou can activate pspell with php.ini using: extension=pspell.so.

info-iconpspell and Aspell are supported on all Linux hosting servers by SuperHosting.BG.

Bulgarian Encoding

Depending on the text language you can set the respective dictionary to be used.

To enable the Bulgarian spell checker you might have to add a few settings to the PHP script:

header('Content-Type: text/html; charset=utf-8');
...
$pspell_link = pspell_new('bg', ' ', ' ', 'utf-8');

Aspell settings

You can check Aspell system settings through SSH.

Check the installed dictionaries:

aspell dump dicts

Aspell version:

aspell -v

Check the language dictionary contents (in this case EN):

aspell -l en dump master

Check Aspell configuration:

aspell config

Aspell settings are stored in a system configuration file which cannot be modified by users. To change specific settings, you must use the user configuration file .aspell.conf, which must be located in the home directory of the hosting account.

Tо use the Aspell configuration file you should first copy the system file settings with the following command:

aspell dump config > /home/cpuser/.aspell.conf

Then you can edit your Aspell settings in the .aspell.conf file.

500px270px
SuperHosting.BG
    PHP
  • PHP Manager by SuperHosting
    In cPanel you can change the PHP settings for all hosting plans offered by SuperHosting.BG. You can change the PHP version, enable or disable PHP modules and change PHP directives. This... »
  • How to View My PHP Settings (Version, Directives, Modules)?
    For the PHP directives there are system values set by default. You can get information about them by calling the phpinfo() function. By using phpinfo you can view the PHP version, enabled PHP... »
  • PHP Modules (PHP Extensions)
    PHP modules are extensions mostly written in C language. They can be compiled with PHP to enable static loading (as part of the binary file) or dynamic loading (with the... »
  • How to Install and Use a PEAR Package?
    To start using a PEAR Package, first install it into your hosting account and then enable it for the PHP application/script. Installing a PEAR Package Automatic Installation in cPanel PEAR Packages are automatically... »
  • PEAR Packages
    PEAR (PHP Extension and Application Repository) is a framework and distribution system for reusable PHP components. PEAR packages are bundles of files written in PHP that can be embedded into PHP applications. PEAR packages... »
All rights reserved © 2005-2017 , www.superhosting.bg