Tag: PHP

  • Apple App Store Connect API JWT tokens in PHP

    I found it surprisingly hard to generate valid JWT tokens per this documentation, and kept getting a 401. Here’s some working code.

  • How to archive, then delete, old Tweets

    I joined Twitter in January 2009 for what might not have been the best of reasons – I was being miserable about it on BBC Radio, and thought I should at least make an effort to try the thing I was being professionally miserable about – and, somehow, have kept using it ever since. But,…

  • How To: Write a RTing Twitter bot in PHP

    File this one under “stuff I’ve been meaning to look up for ages”: yesterday I finally sat down and wrote a Twitter-bot. You know the kind – a dedicated account that looks for updates containing a certain word or phrase, then retweets them – I often end up being tweeted by @redscarebot, for example. Anyhow,…

  • Block WordPress Registration Spam with a Custom Captcha

    The WordPress platform is a great way to run a blog or website, but it is under constant attack from spammers. Even if you prevent anonymous commenting, require user registration and implement the WP-reCAPTCHA plugin, you might find yourself – as I did – receiving dozens of automated, spammy registrations per day. However they’re getting…