Not sure what this type of function is called and it is making it impossible for me to Google what I'm trying to accomplish.
Let's say I'm doing some PPV on Media Traffic and I can $_GET the target_passthrough variable that is passed through the URL. Depending on how I'm targeting things, it could be a mix of formats such as:
.targetsite.com
targetsite.com
news.targetsite.com
anothertargetsite.com/randomsubdirectory
yetanothersite.com/randomsub/index.php?p=test
I'd like to be able to consistently pull the root domain from that target and echo it out into my creative to do something like: "Welcome Targetsite.com User."
Any idea what types of functions would be involved so I can go read up on them? One component is pulling out whatever is after the initial "." and then including the TLD but cutting off everything after. I'd then like to capitalize the first letter of the domain and I don't know if that is a separate function or not (probably is).
If this is an easy thing to code and you feel like being nice, feel free to drop some code, otherwise I'd just appreciate some info on what the functions involved are called so I can go research this and learn more about it. Gracias.
Let's say I'm doing some PPV on Media Traffic and I can $_GET the target_passthrough variable that is passed through the URL. Depending on how I'm targeting things, it could be a mix of formats such as:
.targetsite.com
targetsite.com
news.targetsite.com
anothertargetsite.com/randomsubdirectory
yetanothersite.com/randomsub/index.php?p=test
I'd like to be able to consistently pull the root domain from that target and echo it out into my creative to do something like: "Welcome Targetsite.com User."
Any idea what types of functions would be involved so I can go read up on them? One component is pulling out whatever is after the initial "." and then including the TLD but cutting off everything after. I'd then like to capitalize the first letter of the domain and I don't know if that is a separate function or not (probably is).
If this is an easy thing to code and you feel like being nice, feel free to drop some code, otherwise I'd just appreciate some info on what the functions involved are called so I can go research this and learn more about it. Gracias.