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:
Text Replacement In PHP
Moderator: General Moderators
Text Replacement In PHP
- Attachments
-
- goldrates.zip
- (872 Bytes) Downloaded 4 times
Re: Text Replacement In PHP
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()
if you're just replacing a string, take a look at str_replace()
Re: Text Replacement In PHP
Thanks for trying to help, the issue is resolved and yeah by using str_replace.