View RSS Feed

PHP coding

PHP and mySQL related tips and code.

  1. The case against animated page flipping publications

    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

    Categories
    PHP coding , Web Design issues , Flash related
  2. 'SiteShow' with slides scheduled for specific times or dates (PHP/JS)

    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');
    ...

    Updated 09-30-2016 at 11:43 AM by Beverleyh

    Categories
    JavaScript & Ajax , PHP coding
  3. Display Excerpts From an RSS Feed, with Pagination

    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

    Categories
    PHP coding , Web Design issues
  4. XML to HTML - Getting XML Data into a Web Page with SimpleXML

    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

    Categories
    PHP coding , Web Design issues
  5. Click-Counter with Flat File Storage (text file) - AJAX & PHP

    I was inspired by a recent forum thread, to write a click counter that can count clicks/hits to any HTML element (links, buttons, images, etc.). Multiple counts are saved to one text file (no database needed) using PHP, while AJAX displays the increasing numbers in real time. No page refresh required!

    It's very light-weight because no dependencies or large JavaScript libraries are used - it's all plain JS.


    DEMO - AJAX & PHP Click-Counter with Flat File Storage ...

    Updated 11-17-2015 at 12:23 PM by Beverleyh

    Categories
    JavaScript & Ajax , PHP coding , Web Design issues
Page 1 of 2 12 LastLast