tutorials

My knowledge-sharing playground, which mostly contains PHP & JavaScript related stuff.

how to store and retrieve your latest tweet from an XML file

how to store and retrieve your latest tweet from an XML file

Retrieving and displaying a tweet using the twitter API in real-time as discussed in “how to retrieve and display your latest tweet using PHP” can sometimes produce errors due to twitter’s inability to handle a lot of simultaneous request from multiple users. To deal with that, you can store the tweet in an XML file and retrieve it from there, so you don’t have to rely on twitter’s availability. This way is more efficient and will improve the loading time of the page.

Read more →