How to check Cloudflare cache status programmatically

Just imagine: your small web app, that allows user to download medium-large ZIP files, due a lucky reddit post, suddenly start to receive huge amount of traffic, and specifically a lot of downloads.

The server is a small tier with a very small bandwith: a peak of downloads after a new file release turn in a DDOS for your webapp.

Continue reading “How to check Cloudflare cache status programmatically”

SimpleTwitter: small PHP class for search on Twitter

Often i publish some small code snippets, usually written during development of large projects.
Today i want to share a small PHP class that uses Twitter API in order to perform a search and downloads the most recents tweets.

Continue reading “SimpleTwitter: small PHP class for search on Twitter”