[PHP] stripslashes and quoted material

2003-01-08 Thread Gerard Samuel
Hey all. I noticed a string containing slashes was breaking some code of mine on an w2k/IIS box running php 4.2.3. For example - a href=\http://www.apache.org/\; target=\_blank\ When trying to apply stripslashes, the slashes remained. So I applied str_replace('\', '', $var) and that worked.

Re: [PHP] stripslashes and quoted material

2003-01-08 Thread Chris Wesley
On Wed, 8 Jan 2003, Gerard Samuel wrote: a href=\http://www.apache.org/\; target=\_blank\ When trying to apply stripslashes, the slashes remained. So I applied str_replace('\', '', $var) and that worked. Any idea as to why stripslashes would not remove the slashes in the string?

Re: [PHP] stripslashes and quoted material

2003-01-08 Thread Gerard Samuel
I figured out the problem. magic_quotes_sybase was turned on, on the IIS box. All is well with stripslashes() again. Chris Wesley wrote: On Wed, 8 Jan 2003, Gerard Samuel wrote: a href=\http://www.apache.org/\; target=\_blank\ When trying to apply stripslashes, the slashes remained. So I