XML Feed

PHP2HTML - Automate RSS New Feed Distribution

The PHP2HTML program gives web designers the ability to create static HTM pages from PHP.  Plus with the Janco templates you can get with fresh content every hour (or day) utilizing public RSS news feeds.  Search engines see fresh content and rank those pages higher.  The web site has dynamic pages available and does not need the processing overhead necessary to generate new pages each time they are accessed. 

Works on both Virtual and Dedicated Web ServersSoftwpedia Clean Award

If your web site is on a shared server, the program (from your local windows machine) automatically FTPs changed pages to your ISPs web server.  If you have a dedicated server, even at an ISP, PHP2HTML can run as a service and save the FTP step.  Imagine fresh content published even when you are away!

Email Notification and Error Logging

You can be notified via e-mail of successes and failures of generation.  Notifications can be routed to your blackberry or to your pager.

Windows Operating Environment

Before you start the windows computer that runs PHP2HTML must have Windows IIS and PHP installed.

PHP is a widely-used general-purpose scripting language that is especially suited for Web development.  Your web server or host that runs the PHP2HTML program needs to be enable to run the scrip.  The binaries that are need to activate the scrip are free and can be downloaded from the PHP site.

http://www.php.net/downloads.php

 

Overview

Modify Janco.PHP

There are only four things that you need to do with the Janco.PHP to customize the PHP page to your web site and web page.

  1. $XMLfilename = "http://internetnews.com/icom_includes/feeds/inews/wr-dev-news-10.xml"; the URL in quotes should be changed to the URL which you want to use as the source for your static page.  (Note: the // in front of a line in PHP make the line a non-executable comment.)

  2. $TEMPLATEfilename = "http://www.yoursitename.com/yourtemplate.htm"; the URL in quotes should be changed to to the URL which is the template that the PHP program will use to fill in.  (Note: you need to create one template for EACH URL that you want to generate.)

  3. $FeedMaxItems = 5; the number represents the number of items that are going to be included from the XMLfilename.  This is dependant on each individual template page design. (Note: Many news feeds have only 5 or 10 items in them and some have images included in them.  You should view the results of the generated HTM page to verify it has the look and feel necessary for your site.)

  4. SAVE the modified PHP file with a unique name (i.e. "your.htm") either on your remote processor or web server in the location that is defined in PHP2HTML.

Create yourtemplate.htm

Sample code to put in your template.

There must be a BeginItemsRecord and EndItemsRecord in order to define where PHP2HTML will place the items in the template. If you specify 5 items and there are 5 items in the XMLfilename then you will have 5 news items listed.  The SortByPubDate causes the items to be listed the newest on first and the next newest next.

Notice the item labeled more info.  That item was defined as a hyperlink with the name of ~~~ItemLink~~~. Also the font characteristics of each of the fields can be defined separately.

The template page should include PHP fields that need to be included.  All filed names start and end with ~~~.  For example the item title is ~~~ItemTitle~~~. The defined fields are:

  • Item Title ~~~ItemTitle~~~

  • Item Description ~~~ItemDescription~~~

  • Item Link ~~~ItemLink~~~

  • Item Publication Date ~~~ItemPubDate~~~   (Fri, 21 Oct 2005 15:15:51 +0000)

  • Item Long Publication Date ~~~ItemPubLongDate~~~ (October 21st, 2005)

  • Item Short Publication Date ~~~ItemPubShortDate~~~ (10/21/2005)

  • Item Long Publication Time ~~~ItemPubLongTime~~~ (15:15:51 Mountain Daylight Time -0600)

  • Item Short Publication Time ~~~ItemPubShortTime~~~ (03:15 PM)

If you would like Janco Associates, Inc's consultants can provide you with a PHP and Template for your pages.  In addition we can manage the generation process for you by running it on our servers.   Call us directly at 435 940-9300 extension 101 or send an e-mail to us at PHP Support

Site Map

News

Greater Mobile Use Brings Bigger Virus Threat

 New variants spreading via Bluetooth, multimedia and text features

 

Oracle Unveils Access Management Suite

 Rolls up products from various acquisitions to further its vision for application-centric identity, touts product as helping ensure compliance with Red Flag Rules.

 

Google Opens Knol, a Wiki with Bylines

 Site is designed to let people sign their name to their expertise, rather than be lost in anonymity.

 

Technical Analysis: Rally Hits Headwinds

 With a number of tough levels just ahead, the market could face a pullback here.

 

TomorrowNow's Closure May Not Cure SAP's Pain

 The move by SAP to shut down its TomorrowNow unit to placate Oracle and its $1 billion lawsuit may not end the German software giant's agony.

 

Inside CIOs' Investing Decisions

 Panel of tech execs raises a few caution flags about jumping on the hottest trends.

 

EMC, AT&T Send Tech Stocks Higher

 Strong results from the two tech bellwethers eased fears about a tech spending slowdown on Wednesday.

 

Amazon Profits Jump 102 Percent

 UPDATED: E-commerce heavy turns in solid second quarter amid frigid economic climate.

 

Icahn Speaks Out on Yahoo Truce

 Activist investor admits a full-bore proxy fight would have been a losing battle. But Microsoft may not be out of the picture yet.

 

Data Demand Fuels AT&T Earnings

 Carrier posts 4.7 percent revenue increase amid increasing wireless data competition.

 

Sun Takes a Shine to Linux in New Web Stack

 But by offering a standardized stack across a variety of OSes, the company also looks to displace the traditional offerings from Linux vendors.

 

EMC's Strong Quarter Overshadowed by VMware

 The storage giant's results beat Wall Street estimates, but analysts on the company's conference call were more concerned about its once high-flying virtualization unit.

 

Ubuntu Founder: Linux Should Focus on Looks

 Shuttleworth challenges open source community to best Apple in user experience and stresses the importance of free software.

 

Intel's Building Blocks Thread Open Source

 Chip leader improves performance of developer tool for parallel development by canceling and blocking.

 

Sybase iPhone Support for Notes, Exchange

 Offers enterprises a more 'seamless' transition to wireless application support for the hot-selling iPhone.

 

 

© 1999 - 2008 Janco Associates, Inc. - ALL RIGHTS RESERVED  --  Revised: 07/02/08.