Page 1 of 1

Text Replacement In PHP

Posted: Tue Jan 20, 2009 3:14 pm
by FXG
Hello Everyone,

This is my first post on this forum, it is great! Reading the old posts I have found members to be courteous and very helping, that encouraged me to post my problem here.

What I am trying to do is to remove a URL before saving into html file. Please see the attached file.

The URL I want to remove is:

<a href="/index.php?MIndex=03&currPageNo=1&getStory=goldrates">

I can't figure out why it is not getting replaced with the code in the attached file:

Re: Text Replacement In PHP

Posted: Tue Jan 20, 2009 3:20 pm
by Burrito
I'm not downloading your file...just place applicable code within PHP tags here.

if you're just replacing a string, take a look at str_replace()

Re: Text Replacement In PHP

Posted: Tue Jan 20, 2009 3:44 pm
by FXG
Thanks for trying to help, the issue is resolved and yeah by using str_replace.