PHP file_get_contents over HTTP or HTTPS
Posted 3rd November 2016
No comments
A nifty PHP script which will detect whether a page is being served over HTTP or HTTPS and return the result as a string for use in PHP file_get_contents (or other) include functions.
Use PHP to block Pinterest “pins” and still let your site validate
Posted 8th August 2012
No comments
Prevent Pinterest users from “pinning” images on specific web pages or right across your website with this simple PHP include.
Use PHP to insert an automatic “last modified” date into web pages
Posted 30th October 2011
14 comments
Use PHP to generate a “Last modified” date into your static web pages that automatically updates when the page does, so you don’t need to worry about it.