Get information from another page with PHP

Asked

Viewed 222 times

0

Is there any way to get information from another page, like <title>, <link rel="icon" href="/favicon.ico" type="image/x-icon"/>, <meta name="description" content="DESCRIÇÃO DE OUTRO SITE"/>, same page image as this: <meta property="og:image" content="/81.jpg" />

This coming from a URL parameter

$url = $_GET ["url"];

That is when I have a COM URL link.php?url=https://siteapegar.com I can get all this information above.

has some way of doing that ?

  • I haven’t used php for a while, but I tried file_get_contents("http://exemplo.com.br/", false, $context)?

  • search on the site by file_get_contents and Curl, this is a question already dealt with extensively here (I’m running out of time to find the originals, but if anyone can do it, help)

  • Answer: https://answall.com/a/277387/99718

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.