View RSS Feed

PHP coding

PHP and mySQL related tips and code.

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

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

    JavaScript & Ajax , PHP coding
  2. 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:

    The RSS file I'm working with ...

    Updated 02-10-2016 at 03:21 PM by Beverleyh

    PHP coding , Web Design issues
  3. 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 03:05 PM by Beverleyh

    PHP coding , Web Design issues
  4. 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 11:23 AM by Beverleyh

    JavaScript & Ajax , PHP coding , Web Design issues
  5. Opting Out of Responsive Design (choosing desktop layouts on mobile)

    Responsive web design (done well) allows users to achieve their goals on any internet accessible device, but what if they *want* to view the fixed width desktop version of a website, even on mobile?

    This post comes at a time when responsive web design interest is piquing - certainly here on DD - probably the result of those emails we've been receiving via Google Webmaster Tools, that basically tell us how "X % of your web pages do not provide an optimal mobile experience... your ...
Page 1 of 2 12 LastLast