开发者

Get meta information, title and all images of any webpage using php

开发者 https://www.devze.com 2022-12-13 15:22 出处:网络
I want to get all the meta information like description, title, keyword etc of any web page using php.

I want to get all the meta information like description, title, keyword etc of any web page using php.

I am using get_meta_tags php function but its displaying warning. I have paste the error below.

Warning: file_get_contents() [function.file-get-contents]: php_network开发者_运维技巧_getaddresses: getaddrinfo failed: No such host is known. in filename......

And how could i get all images on the web page?

Thanks in advance.


I think you're putting an address as link identifier (http://path/to/your/file.php)? And not a file (file.php)?


"getaddrinfo failed" suggests that your webserver's dns client isn't configured properly. Thererfore php cannot resolve "google.com" to an actual ip address.

0

精彩评论

暂无评论...
验证码 换一张
取 消