12.3. "Post to Twitter" Link

Your next task is just for fun: it adds a "Post to Twitter" link to the bottom of each blog entry. When clicked, this link takes a user to her Twitter[] home page and fills out her status field automatically with the title of the blog and a URL.

[] http://twitter.com

You use a shortened URL here because Twitter has a 140 character limit for status updates, and blog URLs have a tendency to be fairly long. To shorten your blog's URLs, you use the shortening service, http://bit.ly.

NOTE

Twitter is a social networking site that pioneered the concept of "micro-blogging," or status updates limited to 140 characters. As I write this, Twitter is one of the most popular and fastest-growing services on the web.

12.3.1. Creating ...

Get PHP for Absolute Beginners now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.