support for google alerts rss feed
-
How can I check for Google redirect url and pick the original post link. Something like this
$protocol = $parsedLink[‘scheme’];
if (strpos($protocol . “://www.google.com/url”, $link) == 0) {
$query = $parsedLink[‘query’];
$url_query = explode(“&”, $query);
foreach ($url_query as $param) {
if (strpos($param, ‘url=’) === 0) {
$link = str_replace(“url=”, “”, $param);
$link = urldecode($link);
$parsedLink = parse_url($link);
break;
}
}
}
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘support for google alerts rss feed’ is closed to new replies.