Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

pspell_new_config(3) [php man page]

PSPELL_NEW_CONFIG(3)							 1						      PSPELL_NEW_CONFIG(3)

pspell_new_config - Load a new dictionary with settings based on a given config

SYNOPSIS
int pspell_new_config (int $config) DESCRIPTION
pspell_new_config(3) opens up a new dictionary with settings specified in a config, created with pspell_config_create(3) and modified with pspell_config_*(3) functions. This method provides you with the most flexibility and has all the functionality provided by pspell_new(3) and pspell_new_personal(3). PARAMETERS
o $config - The $config parameter is the one returned by pspell_config_create(3) when the config was created. RETURN VALUES
Returns a dictionary link identifier on success. EXAMPLES
Example #1 pspell_new_config(3) <?php $pspell_config = pspell_config_create("en"); pspell_config_personal($pspell_config, "/var/dictionaries/custom.pws"); pspell_config_repl($pspell_config, "/var/dictionaries/custom.repl"); $pspell_link = pspell_new_config($pspell_config); ?> PHP Documentation Group PSPELL_NEW_CONFIG(3)

Check Out this Related Man Page

PSPELL_CONFIG_PERSONAL(3)						 1						 PSPELL_CONFIG_PERSONAL(3)

pspell_config_personal - Set a file that contains personal wordlist

SYNOPSIS
bool pspell_config_personal (int $dictionary_link, string $file) DESCRIPTION
Set a file that contains personal wordlist. The personal wordlist will be loaded and used in addition to the standard one after you call pspell_new_config(3). The file is also the file where pspell_save_wordlist(3) will save personal wordlist to. pspell_config_personal(3) should be used on a config before calling pspell_new_config(3). PARAMETERS
o $dictionary_link - o $file - The personal wordlist. If the file does not exist, it will be created. The file should be writable by whoever PHP runs as (e.g. nobody). RETURN VALUES
Returns TRUE on success or FALSE on failure. EXAMPLES
Example #1 pspell_config_personal(3) <?php $pspell_config = pspell_config_create("en"); pspell_config_personal($pspell_config, "/var/dictionaries/custom.pws"); $pspell_link = pspell_new_config($pspell_config); pspell_check($pspell_link, "thecat"); ?> NOTES
Note This function will not work unless you have pspell .11.2 and aspell .32.5 or later. PHP Documentation Group PSPELL_CONFIG_PERSONAL(3)
Man Page

3 More Discussions You Might Find Interesting

1. Solaris

Placing a config file

Hi all, I need to place a custom configuration file for a script/program that will likely be sitting in /usr/sbin, but I am unsure of exactly where to place it. In RHEL was told the config file should be in /etc/sysconfig, but no such directory exists in Solaris. Will my config file simply sit... (5 Replies)
Discussion started by: Rocket2DMn
5 Replies

2. Solaris

IPMP config

Hi All, I have unplumbed one interface. after that ifconfig -a shows that lo0: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 index 1 inet 127.0.0.1 netmask ff000000 e1000g0: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2 ... (7 Replies)
Discussion started by: jegaraman
7 Replies

3. UNIX for Beginners Questions & Answers

Replacing settings in config files.

Hi folks. I'm a programmer of too many years to mention, but I'm only just starting my journey into unix based systems. I'm staring out with the Raspberry pi as they're inexpensive and have the built in GPIO which is always good fun. It's running the default Raspbian system. Unix scripting... (2 Replies)
Discussion started by: MuntyScrunt
2 Replies