PHP and mySQL related tips and code.
A few years ago, I set up a web page that contained several different forms. I don't really know much about how spambots work (does anyone?) but, after a few weeks, it started taking hits - the usual junk about mail order brides and marketing advice, etc. The strange thing was that the spam only ever came in on the very first form - that is, via the form that appeared uppermost in the HTML - and it happened with too much predictability and regularity for it to just be coincidence. ...
During a recent meeting I was asked to explore the possibility of presenting existing PDF newsletters in a flipping book format. You know the sort; online interactive magazine layouts presented as a 3D book where pages are navigated to and animated in a realistic flipping motion. This wasn't new ground for me as I'd already completed the exercise (and dismissed them in favour of PDF) 5 years ago, but the topic had raised its head again, and this time it was interesting to relook at things from a ...
Updated 01-30-2017 at 05:28 PM by Beverleyh
Building on my previous SiteShow with Controls - Fade-in a list of web pages/URLs as a fullscreen 'SiteShow' blog post, this article shows you how to adapt the scripts to schedule in additional slides for certain times, or specific dates, using PHP. The PHP To start off, using the full-screen demo page as a base, we'll set a few PHP variables at the top of the page to set our local timezone and identify the time, date and weekday; Code: <?php date_default_timezone_set('Europe/London'); ...
<?php date_default_timezone_set('Europe/London');
Updated 09-30-2016 at 10:43 AM by Beverleyh
Last month I showed you how to Get XML Data into a Web Page - this month we use that knowledge to create a paginated web page of featured story excerpts, from an RSS feed. The pagination script is a freebie that you can plug in to your own projects too! You certainly get lots for your money with this blog! Demo - Display Excerpts From an RSS Feed, with Pagination: http://fofwebdesign.co.uk/template/_...pagination.php The RSS file I'm working with ...
Updated 02-10-2016 at 04:21 PM by Beverleyh
XML stands for EXtensible Markup Language. It is a language designed to accurately describe and structure data, keeping it separate from any styling or visual formatting. Its aim is to separate presentation, structure, and meaning from the actual content - and it does a pretty good job of it. Storing the data in this fuss-free way is great and many tools, software and websites output data/feeds in the XML format because it is reliable, format-free, robust, easily transferred and easily ...
Updated 01-13-2016 at 04:05 PM by Beverleyh