quirky str_replace behaviour
Posted: Tue Jul 29, 2003 7:17 pm
I've been doing PHP for about 3 years now, and this one is a headscratcher.
My site tracks classified ads, and the copy is in a db. I compose it for a screen using html tags, then convert those to xtag format to import into Quark.
Most quark xtags are similar to html, ie:
<B></B> in quark is <B><B>
so, I simply do:
$quark =str_replace('</','<',$html);
My client has Macs. They use OSX with the standard php/mysql implementation. It is php4.
All users use IE5
Now, on one pesky machine, the replacement doesn't happen, or if it does, it gets reverted back.
Has anyone seen anything like this? It doesn't make sense. PHP is server side scripting, so how the heck can one client machine be different?
My site tracks classified ads, and the copy is in a db. I compose it for a screen using html tags, then convert those to xtag format to import into Quark.
Most quark xtags are similar to html, ie:
<B></B> in quark is <B><B>
so, I simply do:
$quark =str_replace('</','<',$html);
My client has Macs. They use OSX with the standard php/mysql implementation. It is php4.
All users use IE5
Now, on one pesky machine, the replacement doesn't happen, or if it does, it gets reverted back.
Has anyone seen anything like this? It doesn't make sense. PHP is server side scripting, so how the heck can one client machine be different?