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.
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?
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
3 matches
Mail list logo