Get websites title and description, save to utf8 table, php/mysql
- by Geteburg
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.