Search code examples
phphtmlcurlmeta-tags

getting meta tags info using curl and get_meta_tags()


is there a way to use curl such that you can do something that is equivalent to the get_meta_tags() function in php? specifically to get the meta tags of an external site using curl in php with the least amount of overhead possible


Solution

  • is there a way to use curl such that you can do something that is equivalent to the get_meta_tags() function in php

    Nope, I don't think so.

    The best way would be to fetch the data, and parse it using a HTML parser. Alternatively, there are several regex based approaches in the user contributed notes in the manual.