Show a small, safe list of links from an RSS feed
Use WordPress's feed parser and cache, handle unavailable feeds, and escape external titles and links before rendering them.
Open Code ByteStop New Relic injecting browser scripts into WordPress AMP pages
Disable automatic browser instrumentation only on AMP responses without editing a plugin or switching off server-side monitoring.
Open Code ByteUpdate a footer year without document.write
Keep a footer year current using a small JavaScript enhancement or a server-rendered PHP date, with a readable fallback.
Open Code ByteConvert a list of UK dates to Unix timestamps in PHP
Validate day/month/year dates, choose a timezone explicitly and convert a whole list without silently accepting impossible dates.
Open Code ByteUpdate several columns with PDO and an explicit allowlist
Bind values safely, keep table and column names under application control, and scope every UPDATE to the intended record.
Open Code ByteParse a UK date explicitly instead of guessing with strtotime()
Convert a strict DD/MM/YYYY value into a validated PHP date, reject impossible dates and avoid ambiguous separator tricks.
Open Code ByteFind undersized images with PHP before moving anything
Make a read-only report of small local images, skip invalid files and keep originals intact instead of moving everything that fails a dimension check.
Open Code ByteGenerate a year dropdown in PHP
Build a labelled year select with integer comparisons, a deliberate timezone and validation of a requested selected year.
Open Code ByteAnimate a progress display without inventing progress
Give a known percentage a small visual entrance, keep its value accessible and distinguish a demonstration from real upload or task progress.
Open Code Byte