Get websites title and description, save to utf8 table, php/mysql
Posted
by Geteburg
on Stack Overflow
See other posts from Stack Overflow
or by Geteburg
Published on 2010-05-27T17:45:11Z
Indexed on
2010/05/27
17:51 UTC
Read the original article
Hit count: 147
php
Hi guys,
I've been trying today all day to figure this out and I have no idea.
What I want: Get the title and meta description of any kind of website.
Save this info to utf table in mysql.
What the problem is? Different sites have different charsets which results in that some have chinese, some contain umlauts (german), then we have russian and so on..
I've tried preg_match which works for some while not for others, i've tried DOMdocument which is the same as preg_match.
Is there any class available that will do this?
Hope someone can help, thanks.
© Stack Overflow or respective owner