php - can't able to fetch meta tag for particular url

845

I am using php script for fetch the keywords from meta tag for the particular website. but for some URL it is not working, when i manually check the keywords for that URL then i found that keywords are exist in the web page.

$url = "https://www.washingtonpost.com/news/education/wp/2018/02/14/school-shooting-reported-at-florida-high-school/?tid=pm_pop";
    get_meta_tags($url);

It always give me warning:-

Warning: get_meta_tags(https://www.washingtonpost.com/politics/stormy-danielss-tale-gains-renewed-momentum-with-trump-lawyers-claim-which-raises-new-questions/2018/02/14/e7ce4a16-119d-11e8-9065-e55346f6de81_story.html?tid=pm_pop): failed to open stream: Redirection limit reached

Any Idea?

154

People are also looking for solutions to the problem: php - Login route to use custom guard when default guard is set to 'api'

Source

Didn't find the answer?

Our community is visited by hundreds of web development professionals every day. Ask your question and get a quick answer for free.

Ask a Question

Write quick answer

Do you know the answer to this question? Write a quick response to it. With your help, we will make our community stronger.

Similar questions

Find the answer in similar questions on our website.