Description, title and keywords of a page
Copy and paste the following code into your editor and run it (code comments are included). If you want to see the live result (we believe this is the best way to learn what is the script about), try it here (new window). Source code The following script fetch the description, title and keywords from an url even if there are no meta tags. It also take care of the charset.
This kind of script can easily be implemented and adapted inside a search engine robot. download the file
As we take care of multilingual possibilities, here is short list of different charset:
- charset=big5 - Chinese Traditional (Big5)
- charset=iso-8859-1 - Western Alphabet
- charset=iso-8859-6 - Arabic Alphabet (ISO)
- charset=utf-8 - Universal Alphabet (UTF-8)
- charset=windows-1252 - Western Alphabet (Windows)
- charset=gb2312 - Chinese Simplified (GB2312)
- charset=iso-8859-15 - Latin 9 (ISO)
A more important list is available at International/O-charset-list.html
For details about the different Php functions implemented here, there are interesting pages:
- Sitemap Generator (another Curl example)
- preg_match examples
- php.net/iconv (iconv function)
Post a comment
|
Webmaster Corner
The ClickBnk Code
Another Killer Product From Michael Jones, simply follow the Blueprint For Easy Online Wealth Using Click Bank...
Mass Article Control #1 Create Thousands Of Articles From only 1 Article and Have them Submitted Automatically With A brand New Submitter!
iPowerWeb

Incredible Membership Packages - Web Hosting!
→ Maverick Money Makers - Get Paid For Life!
|
Categories
|