![]() |
PHPSpellchecker for VB2.x! (Beta)
OK, finally here is the code for the PHPSpellchecker!
If you find any bugs, please post your findings here Check out the Zip file for more info. Enjoy! Raz Note: You will require PSpell (inc ASpell) installed. |
Another one?? Heh heh (hopefully this one works) :P
*is trying now* |
It might work, it might not - thats why its in beta at the moment ;)
|
Thanks for offering this to the community, Raz. While I won't be installing this in the immediate future, I'm interested to hear how this works for others.
|
Raz have you tried it? How about some support on installing this Pspell thing you need to have, I'm a bit confused on how to install it. I've already downloaded it, and looked at the instructions...but it's not much help..:p
|
I just installed it, and everything works except it will not submit the changes, when I hit Finshed Checking it just blinks and comes back again.
|
OK, to install PSpell do that following (taken from php.net):
Quote:
|
Quote:
|
Heh, I'm no expert when it comes to this command stuff. Is this done in Telnet? Also, the Pspell files, do I upload them all to that spellcheck folder?
|
Velocd, you will need to rebuild your PHP installation.
If you've never done it before, I suggest you do some reading up before you attempt this. Do you have root access to your server? |
Quote:
|
rebuild my PHP installation? that doesn't sound like fun :(
I have root access to my server, yes, I believe. I was hoping this spellchecker wasn't going to involve so much other stuff... hmm..Prince seemed to install it quite fast... |
Prince, re-upload this one (I just updated it).
Velocd, it looks like Prince has already had PSpell installed. You might also have it pre-installed - just upload the files and see if they work for you. Alternately you can use a phpinfo() file and it should have pspell listed there if you have it installed. |
I tried out the spellchecker on my forum and the pop-up window just gives a database error. I then checked phpinfo() and Pspell came up nowhere, so I don't think it's installed. Do you have ICQ or AIM, we could possibly talk there and you could give a walkthrough on how to install this..;)
Or here, is fine also. |
Raz, it is submitting now, however it gives blank pages every once in awhile.
(btw, I just asked my web host to install the pspell libraries and they had it done within 24 hours.) |
Quote:
|
any ideas on the blank pages Raz?
|
Question: I thought I had understood from the earlier thread that this would require aspell. Maybe I misunderstood. Now you say it requires pspell. What's the difference? I've also heard of ispell. Will any of them work? Does it have to be specifically pspell? I already asked my webhost to install aspell.
|
I've only read in this thread (and also the readme) that it requires Pspell. No where does it mention Aspell or Ispell ...
Can anyone explain the differences, I'm not aware of them either.. |
http://www.php.net/manual/en/ref.pspell.php
aspell, an open source library, includes pspell support for php. You can get it at aspell.sourceforge.net or www.aspell.net. I believe, although I may be incorrect, that ispell was originally intended for use with perl. Installing the aspell libraries is all you need to do. The aspell developers call it "A More Intelligent Ispell". Installing it depends entirely on your server platform, version of php, and the level of access you have with your server. If you host your own site on your own server that you have full, unrestricted access to, then you should understand how to add libraries to php. If you have no idea how any of this works, chances are you have a shared server or managed account that you're paying someone else to maintain for you. If that's the case, contact your hosting company's support staff and request that pspell support be compiled into php by compiling with the --with-pspell[=dir]. Direct them to the aspell.sourceforge.net site as well. If they do not understand how to do this, or are unwilling to do this for you, then take this as a wake up call that you need a more competent host and switch to a company that is more responsive to your needs and is more familiar with the technology they are using to host your web site. It might seem like more trouble than it's worth for a spell checker, but in all honesty, if they don't understand this stuff, they're in the wrong business. You cannot add pspell support to php without root access to your machine. If you are mailing out a monthly check to some company for their "web hosting plan" then chances are you cannot do this yourself, unless you have a dedicated server with root access. |
Thnx for sharing us that info LS :D
|
Wow this is pro, I just got a response back from my host saying they installed Pspell, sweeeet. Defiantly fast. ^_^
edit: ack! drat, they told me it's installed but the pop-up window is giving me this error: Code:
Fatal error: Call to undefined function: pspell_new() in /home/velocd/public_html/forums/spellcheck/check.php on line 10 |
That error means they didn't install the library correctly. :)
|
They may have installed the pspell libraries, but they will also need to recompile PHP with pspell support i.e. with the --with-pspell[=dir] directive.
|
Quote:
|
Hey Raz, is it possible to run the spell check from another domain?
I have two sites (a separate domain/account for my forums) and I was wondering if I could run the spell checker from my other account to save resources on the forums account. |
Nope, it has to be installed on the domain that it will be used on.
The only reason for this is because of the way IE has set permissions for modifying forms. |
Do you have a screenshots?
|
Quote:
What if they install something that causes wide spread data coruption, 'whoops, it was a customers request...' You don't install everything a customer wants.. Thats why it shared hosting.. If you want certain software, get a dedicated box... |
Quote:
A decent hosting company will certainly try to cater to their customer's needs as much as they can to a certain extent. There are competent services out there that will do this for you. And with regard to data, any half-decent company will regularly backup your data. If anyone is interested in finding such companies, try the hosting forum over at vBulletin.com. |
Quote:
|
Quote:
|
I'm running FreeBSD 4.5 and have done the make install on pspell and aspell. When I run phpinfo() it doesn't show pspell as being installed. When I click on spell check I just get a blank window. It seems as though pspell isn't compiled into php yet (I'm running on a stand alone box btw). Looking at your instructions it looks like I should go to my /usr/ports/www/mod_php4 directory and run you the configure command to add pspell along with the rest of the config commands listed in phpinfo - however, there's no configure command in the mod_php4 directory. Any ideas?
|
You need to compile php --with-pspell. See my earlier post in this thread.
|
Well my great webhost finally (I was in no rush) compiled PHP with the pspell libraries. So quickily I uncommented my code and gave the spellchecker a shot, and it defiantly worked different this time--but, I'm still getting database errors! Help!
In the attachment are the errors I am getting, any help would be most appreciative because this hack is SOOO needed on my forums ^_^ |
The prerequistes of pspell are that aspell are installed (usually are on linux).
Tell your host to install pspell in the aspell dir so it can use its words list. |
*dies* Ok, dang, they're not going to be happy :(
Wish I knew this earlier... |
Being that it's a prerequiste, you may want to edit your first post saying aspell also is required...
|
Sorry for the triple post..
I finally got everything working together and I must say this hack looks great, thanks for releasing it again Raz. Now if this only had a grammar check....;) Attached is a screehshot of what this spellcheck looks like, for those interested. You can see what I mean by grammar check by the word "wit" (commonly used on forums) that is passed up, since it is a real word. |
I'm still having one heck of a time getting this to run. I've install aspell and pspell on our server and I've recompiled PHP with pspell included and have verified it through phpinfo.php that it is there in the config command (did this on our backup server so I didn't have problems on the main site). I've restarted apache and when I click on the spell check button I just get an empty window. Anyone have any ideas?
|
All times are GMT. The time now is 04:44 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|