is there any way for me (using PHP) to replace only www.sitepoint.com part with a different string? example I set string for replacement as abcdef so the output result become
its on my server …are you saying I’m hacking into people’s servers?
I bought a script on ThemeForest…there’s some minus in it and some modifications,for example, i need to print the mobile version of current page at different URL from www.abc.com to m.abc.com
it just an example and is taken from a different part of the script , it seems the code is used for canonical meta tag…i want to add an additional one as mobile alternate so the code doesn’t exist and I’m improvised a bit …
it just when I pasted into new line, i can’t change it into m.abc.com, like i said i don’t understand PHP but it seems the modification seems not heavy ,
my question is …is there some kind of function on PHP than can replace string before it printed , I’m not asking people to solve my problem …
like I said earlier is there any way for me (using PHP) to replace only portion of string? …that the reason I said I don’t understand PHP , because I have no idea , I’m not asking people to solve it …
if there’s is, let say " oh you can use phpinfo; " then I’m going to read how it works…, or maybe “no, PHP cant do that”
so my apologies I f somehow I sounded like asking for people to solve my problem, but I didn’t…
and thank you for your answer, but just nevermind my question