Forum Moderators: coopster

Message Too Old, No Replies

str_replace ignored

         

askeli

9:22 am on Feb 8, 2005 (gmt 0)

10+ Year Member



Hi
im pulling my hair out here

all im trying to do is add to a url using str_replace

EXAMPLE

$url = str_replace("abc&e","abc&d&e",$url);

but it is just ignored on the server but it works fine on my local setup.

i have tried

$url = str_replace("abc&e","abc\&d\&e",$url);

$url = str_replace("abc\&e","abc&d&e",$url);

$url = str_replace("abc&e","abc\&d\&e",$url);

$url = str_replace("abc\&e","abc\&d\&e",$url);

problem setup = php 4.3.10
local setup = php 4.3.9 (windows)

any suggestions greatly appreciated

thanks

RonPK

11:17 am on Feb 8, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Are you sure that $url contains the same string in both situations?