The trick here is that by telling Apache that the /s resource is actually of MIME type
application/x-httpd-php3 which is the magical MIME type which triggers PHP, the s
file will be run like a PHP script. Any text in the URL following the /s will be put into the
$PATH_INFO variable. So in my script I just strip away the first slash and then treat the
remaining text as the word I want to spell check.
A couple of other variables get set to useful things on a request like this. Our /s/bogus request
from above results in the following:
If you don't have aspell enabled, download the aspell tarball and install it. Note that
version 0.27 does not work with PHP since the author did not include a C-callable library.
Version 0.26 works fine. The author has promised to bring back the C-callable library in a
future version.