Re: [PHP-DEV] Error with pspell

2002-06-04 Thread Jani Taskinen


Check your php.ini for 'magic_quotes_' directives and turn them off.

--Jani


On Tue, 4 Jun 2002, Magnus M wrote:

No, I'm not adding slashes, but somewhere something adding slashes.

I'm using a form with some fields, lets call one of the XYZ and it's
those that I want to be spellchecked. So i send them to a function
I've made for spellchecking $_POST['XYZ']..

Now if $_POST['XYZ'] = I'm having some problems with PSPELL
it will complain that I\'m is wrongly spelled and it should be I'm.

I'm using CVS of PHP and Apache 2..

Magnus


On Mon, 03 Jun 2002 15:56:46 -0700
Vlad Krupin [EMAIL PROTECTED] wrote:

 Actually, I did not understand your original email, I guess. Sorry.
 
 If you check a word with a ' character in it, php will pass it unchanged 
 to the pspell library. No backslashes inserted. If you are getting a 
 backslash inserted there, please check your code and see what you are 
 passing to pspell. You might be adding slashes somewhere before you call 
 the function. I can not reproduce your problem.
 
 No, it wouldn't be good to 'trick' php by stripping slashes off the 
 argument, as you suggest.
 
 Vlad
 
 
 Magnus M@gnus wrote:
 
 Ok.. But can't this be overruled somehow in the extension
 to trick pspell to think it's just I've instead of I\'ve?
 
 
 On Mon, 03 Jun 2002 12:24:16 -0700
 Vlad Krupin [EMAIL PROTECTED] wrote:
 
 I believe you would have to complain to Kevin Atkinson about that 
 (author of pspell), but I think he has a good reason for doing it the 
 way he did, so chances are it won't change.
 
 Anyway, not a PHP problem, AFAICS.
 
 Vlad
 
 Magnus M@ wrote:
 
 Hi!
 
 I wrote a function that will spellcheck $var.
 My problem is that if $var contain ' it will
 report that it's wronly spelled like this:
 
 Possible spelling for I\'ve : I've Ive...
 
 
 Regards
 Magnus Määttä
 
 
 
 -- 
 
 -- 
 Vlad Krupin
 Software Engineer
 echospace.com
 
 
 
 
 -- 
 PHP Development Mailing List http://www.php.net/
 To unsubscribe, visit: http://www.php.net/unsub.php
 
 
 
 
 
 -- 
 
 -- 
 Vlad Krupin
 Software Engineer
 echospace.com
 
 
 
 
 -- 
 PHP Development Mailing List http://www.php.net/
 To unsubscribe, visit: http://www.php.net/unsub.php
 
 



-- 


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP-DEV] Error with pspell

2002-06-03 Thread Vlad Krupin

I believe you would have to complain to Kevin Atkinson about that 
(author of pspell), but I think he has a good reason for doing it the 
way he did, so chances are it won't change.

Anyway, not a PHP problem, AFAICS.

Vlad

Magnus M wrote:

Hi!

I wrote a function that will spellcheck $var.
My problem is that if $var contain ' it will
report that it's wronly spelled like this:

Possible spelling for I\'ve : I've Ive...


Regards
Magnus Määttä
 



-- 

-- 
Vlad Krupin
Software Engineer
echospace.com




-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP-DEV] Error with pspell

2002-06-03 Thread Magnus M@gnus

Ok.. But can't this be overruled somehow in the extension
to trick pspell to think it's just I've instead of I\'ve?


On Mon, 03 Jun 2002 12:24:16 -0700
Vlad Krupin [EMAIL PROTECTED] wrote:

 I believe you would have to complain to Kevin Atkinson about that 
 (author of pspell), but I think he has a good reason for doing it the 
 way he did, so chances are it won't change.
 
 Anyway, not a PHP problem, AFAICS.
 
 Vlad
 
 Magnus M@ wrote:
 
 Hi!
 
 I wrote a function that will spellcheck $var.
 My problem is that if $var contain ' it will
 report that it's wronly spelled like this:
 
 Possible spelling for I\'ve : I've Ive...
 
 
 Regards
 Magnus Määttä
  
 
 
 
 -- 
 
 -- 
 Vlad Krupin
 Software Engineer
 echospace.com
 
 
 
 
 -- 
 PHP Development Mailing List http://www.php.net/
 To unsubscribe, visit: http://www.php.net/unsub.php
 
 

-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP-DEV] Error with pspell

2002-06-03 Thread Vlad Krupin

Actually, I did not understand your original email, I guess. Sorry.

If you check a word with a ' character in it, php will pass it unchanged 
to the pspell library. No backslashes inserted. If you are getting a 
backslash inserted there, please check your code and see what you are 
passing to pspell. You might be adding slashes somewhere before you call 
the function. I can not reproduce your problem.

No, it wouldn't be good to 'trick' php by stripping slashes off the 
argument, as you suggest.

Vlad


Magnus M@gnus wrote:

Ok.. But can't this be overruled somehow in the extension
to trick pspell to think it's just I've instead of I\'ve?


On Mon, 03 Jun 2002 12:24:16 -0700
Vlad Krupin [EMAIL PROTECTED] wrote:

I believe you would have to complain to Kevin Atkinson about that 
(author of pspell), but I think he has a good reason for doing it the 
way he did, so chances are it won't change.

Anyway, not a PHP problem, AFAICS.

Vlad

Magnus M@ wrote:

Hi!

I wrote a function that will spellcheck $var.
My problem is that if $var contain ' it will
report that it's wronly spelled like this:

Possible spelling for I\'ve : I've Ive...


Regards
Magnus Määttä



-- 

-- 
Vlad Krupin
Software Engineer
echospace.com




-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, visit: http://www.php.net/unsub.php





-- 

-- 
Vlad Krupin
Software Engineer
echospace.com




-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP-DEV] Error with pspell

2002-06-03 Thread Magnus M

No, I'm not adding slashes, but somewhere something adding slashes.

I'm using a form with some fields, lets call one of the XYZ and it's
those that I want to be spellchecked. So i send them to a function
I've made for spellchecking $_POST['XYZ']..

Now if $_POST['XYZ'] = I'm having some problems with PSPELL
it will complain that I\'m is wrongly spelled and it should be I'm.

I'm using CVS of PHP and Apache 2..

Magnus


On Mon, 03 Jun 2002 15:56:46 -0700
Vlad Krupin [EMAIL PROTECTED] wrote:

 Actually, I did not understand your original email, I guess. Sorry.
 
 If you check a word with a ' character in it, php will pass it unchanged 
 to the pspell library. No backslashes inserted. If you are getting a 
 backslash inserted there, please check your code and see what you are 
 passing to pspell. You might be adding slashes somewhere before you call 
 the function. I can not reproduce your problem.
 
 No, it wouldn't be good to 'trick' php by stripping slashes off the 
 argument, as you suggest.
 
 Vlad
 
 
 Magnus M@gnus wrote:
 
 Ok.. But can't this be overruled somehow in the extension
 to trick pspell to think it's just I've instead of I\'ve?
 
 
 On Mon, 03 Jun 2002 12:24:16 -0700
 Vlad Krupin [EMAIL PROTECTED] wrote:
 
 I believe you would have to complain to Kevin Atkinson about that 
 (author of pspell), but I think he has a good reason for doing it the 
 way he did, so chances are it won't change.
 
 Anyway, not a PHP problem, AFAICS.
 
 Vlad
 
 Magnus M@ wrote:
 
 Hi!
 
 I wrote a function that will spellcheck $var.
 My problem is that if $var contain ' it will
 report that it's wronly spelled like this:
 
 Possible spelling for I\'ve : I've Ive...
 
 
 Regards
 Magnus Määttä
 
 
 
 -- 
 
 -- 
 Vlad Krupin
 Software Engineer
 echospace.com
 
 
 
 
 -- 
 PHP Development Mailing List http://www.php.net/
 To unsubscribe, visit: http://www.php.net/unsub.php
 
 
 
 
 
 -- 
 
 -- 
 Vlad Krupin
 Software Engineer
 echospace.com
 
 
 
 
 -- 
 PHP Development Mailing List http://www.php.net/
 To unsubscribe, visit: http://www.php.net/unsub.php
 
 

-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP-DEV] Error with pspell

2002-06-01 Thread Magnus M@

Hi!

I wrote a function that will spellcheck $var.
My problem is that if $var contain ' it will
report that it's wronly spelled like this:

Possible spelling for I\'ve : I've Ive...


Regards
Magnus Määttä
 

-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, visit: http://www.php.net/unsub.php