<HTML ><HEAD ><TITLE >Pspell Functions</TITLE ><META NAME="GENERATOR" CONTENT="Modular DocBook HTML Stylesheet Version 1.7"><LINK REL="HOME" TITLE="PHP Manual" HREF="index.html"><LINK REL="UP" TITLE="Function Reference" HREF="funcref.html"><LINK REL="PREVIOUS" TITLE="printer_write" HREF="function.printer-write.html"><LINK REL="NEXT" TITLE="pspell_add_to_personal" HREF="function.pspell-add-to-personal.html"><META HTTP-EQUIV="Content-type" CONTENT="text/html; charset=ISO-8859-1"></HEAD ><BODY CLASS="reference" BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#0000FF" VLINK="#840084" ALINK="#0000FF" ><DIV CLASS="NAVHEADER" ><TABLE SUMMARY="Header navigation table" WIDTH="100%" BORDER="0" CELLPADDING="0" CELLSPACING="0" ><TR ><TH COLSPAN="3" ALIGN="center" >PHP Manual</TH ></TR ><TR ><TD WIDTH="10%" ALIGN="left" VALIGN="bottom" ><A HREF="function.printer-write.html" ACCESSKEY="P" >Prev</A ></TD ><TD WIDTH="80%" ALIGN="center" VALIGN="bottom" ></TD ><TD WIDTH="10%" ALIGN="right" VALIGN="bottom" ><A HREF="function.pspell-add-to-personal.html" ACCESSKEY="N" >Next</A ></TD ></TR ></TABLE ><HR ALIGN="LEFT" WIDTH="100%"></DIV ><DIV CLASS="reference" ><A NAME="ref.pspell" ></A ><DIV CLASS="TITLEPAGE" ><H1 CLASS="title" >LXXXV. Pspell Functions</H1 ><DIV CLASS="PARTINTRO" ><A NAME="AEN80023" ></A ><DIV CLASS="section" ><H1 CLASS="section" ><A NAME="pspell.intro" ></A >Introduction</H1 ><P > These functions allow you to check the spelling of a word and offer suggestions. </P ><DIV CLASS="note" ><BLOCKQUOTE CLASS="note" ><P ><B >Note: </B >This extension is not available on Windows platforms.</P ></BLOCKQUOTE ></DIV ></DIV ><DIV CLASS="section" ><H1 CLASS="section" ><A NAME="pspell.requirements" ></A >Requirements</H1 ><P > To compile PHP with pspell support, you need the aspell and pspell libraries, available from <A HREF="http://aspell.sourceforge.net/" TARGET="_top" >http://aspell.sourceforge.net/</A > and <A HREF="http://aspell.net/" TARGET="_top" >http://aspell.net/</A > respectively. </P ></DIV ><DIV CLASS="section" ><H1 CLASS="section" ><A NAME="pspell.installation" ></A >Installation</H1 ><P > If you have the libraries needed add the <TT CLASS="option" >--with-pspell[=dir]</TT > option when compiling PHP. </P ></DIV ><DIV CLASS="section" ><H1 CLASS="section" ><A NAME="pspell.configuration" ></A >Runtime Configuration</H1 ><P >This extension has no configuration directives defined in <TT CLASS="filename" >php.ini</TT >.</P ></DIV ><DIV CLASS="section" ><H1 CLASS="section" ><A NAME="pspell.resources" ></A >Resource Types</H1 ><P >This extension has no resource types defined.</P ></DIV ><DIV CLASS="section" ><H1 CLASS="section" ><A NAME="pspell.constants" ></A >Predefined Constants</H1 ><P > The constants below are defined by this extension, and will only be available when the extension has either been compiled into PHP or dynamically loaded at runtime. </P ><P ></P ><DIV CLASS="variablelist" ><DL ><DT ><TT CLASS="constant" ><B >PSPELL_FAST</B ></TT > (<A HREF="language.types.integer.html" >integer</A >)</DT ><DD ><P > </P ></DD ><DT ><TT CLASS="constant" ><B >PSPELL_NORMAL</B ></TT > (<A HREF="language.types.integer.html" >integer</A >)</DT ><DD ><P > </P ></DD ><DT ><TT CLASS="constant" ><B >PSPELL_BAD_SPELLERS</B ></TT > (<A HREF="language.types.integer.html" >integer</A >)</DT ><DD ><P > </P ></DD ><DT ><TT CLASS="constant" ><B >PSPELL_RUN_TOGETHER</B ></TT > (<A HREF="language.types.integer.html" >integer</A >)</DT ><DD ><P > </P ></DD ></DL ></DIV ></DIV ></DIV ><DIV CLASS="TOC" ><DL ><DT ><B >Table of Contents</B ></DT ><DT ><A HREF="function.pspell-add-to-personal.html" >pspell_add_to_personal</A > -- Add the word to a personal wordlist</DT ><DT ><A HREF="function.pspell-add-to-session.html" >pspell_add_to_session</A > -- Add the word to the wordlist in the current session </DT ><DT ><A HREF="function.pspell-check.html" >pspell_check</A > -- Check a word</DT ><DT ><A HREF="function.pspell-clear-session.html" >pspell_clear_session</A > -- Clear the current session</DT ><DT ><A HREF="function.pspell-config-create.html" >pspell_config_create</A > -- Create a config used to open a dictionary</DT ><DT ><A HREF="function.pspell-config-ignore.html" >pspell_config_ignore</A > -- Ignore words less than N characters long</DT ><DT ><A HREF="function.pspell-config-mode.html" >pspell_config_mode</A > -- Change the mode number of suggestions returned</DT ><DT ><A HREF="function.pspell-config-personal.html" >pspell_config_personal</A > -- Set a file that contains personal wordlist</DT ><DT ><A HREF="function.pspell-config-repl.html" >pspell_config_repl</A > -- Set a file that contains replacement pairs</DT ><DT ><A HREF="function.pspell-config-runtogether.html" >pspell_config_runtogether</A > -- Consider run-together words as valid compounds</DT ><DT ><A HREF="function.pspell-config-save-repl.html" >pspell_config_save_repl</A > -- Determine whether to save a replacement pairs list along with the wordlist</DT ><DT ><A HREF="function.pspell-new-config.html" >pspell_new_config</A > -- Load a new dictionary with settings based on a given config </DT ><DT ><A HREF="function.pspell-new-personal.html" >pspell_new_personal</A > -- Load a new dictionary with personal wordlist</DT ><DT ><A HREF="function.pspell-new.html" >pspell_new</A > -- Load a new dictionary</DT ><DT ><A HREF="function.pspell-save-wordlist.html" >pspell_save_wordlist</A > -- Save the personal wordlist to a file</DT ><DT ><A HREF="function.pspell-store-replacement.html" >pspell_store_replacement</A > -- Store a replacement pair for a word</DT ><DT ><A HREF="function.pspell-suggest.html" >pspell_suggest</A > -- Suggest spellings of a word</DT ></DL ></DIV ></DIV ></DIV ><DIV CLASS="NAVFOOTER" ><HR ALIGN="LEFT" WIDTH="100%"><TABLE SUMMARY="Footer navigation table" WIDTH="100%" BORDER="0" CELLPADDING="0" CELLSPACING="0" ><TR ><TD WIDTH="33%" ALIGN="left" VALIGN="top" ><A HREF="function.printer-write.html" ACCESSKEY="P" >Prev</A ></TD ><TD WIDTH="34%" ALIGN="center" VALIGN="top" ><A HREF="index.html" ACCESSKEY="H" >Home</A ></TD ><TD WIDTH="33%" ALIGN="right" VALIGN="top" ><A HREF="function.pspell-add-to-personal.html" ACCESSKEY="N" >Next</A ></TD ></TR ><TR ><TD WIDTH="33%" ALIGN="left" VALIGN="top" >printer_write</TD ><TD WIDTH="34%" ALIGN="center" VALIGN="top" ><A HREF="funcref.html" ACCESSKEY="U" >Up</A ></TD ><TD WIDTH="33%" ALIGN="right" VALIGN="top" >pspell_add_to_personal</TD ></TR ></TABLE ></DIV ></BODY ></HTML >