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 Servers
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.
-
$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.)
-
$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.)
-
$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.)
-
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
Court Gives Viacom Access to YouTube Views
But Viacom denied access to Google's search technology.
AMD Up, HP Down in the Numbers Game
Gartner revises Q1 numbers after getting some new information on HP selling
prices, while iSuppli has better news for AMD.
Free VMware Server 2.0 Now Release Candidate
With gobs of new features, this free package is close to being released as a final product.
New Cheaper Storage Clouds Forming
Pretty soon online storage won't cost anything given latest technologies.
Mobile Phone Users: It's All About Text Appeal
While text messaging leads consumers' must-have features, signs point to good news for advancements being pushed by handset makers, carriers and developers.
IBM Buys Mainframe Player, Ends Lawsuit
Sparring ends over patents and unfair competition with Big Blue's acquisition of Platform Solutions.
nVidia Warns of Chip Delays, Weak Demand
Chipmaker cites problems in production process.
Stocks End Mixed on Job Losses
Stocks managed to close mixed Thursday despite rising joblessness and interest rates and a warning from Nvidia.
Will Consumers Drown in a CPU Deluge?
Dual-core, triple-core, quad-core -- as the varieties grow, will confusion over processor names and capabilities sting PC and chipmakers?
Canadian Fiddler Looks to eBay for Quick Payday
Not the first musician to sell royalties on the auction site.
TV Writers Turn to Web in Strike's Wake
Strike.tv comes to your screen this summer.
Low-Income Americans Slipping on Broadband
New research finds overall broadband use spreading, but suggests that economic squeeze might be slowing uptake among certain segments.
PowerPoint Is Only a Starting Point
The design firm that helped create Al Gore's famous "An Inconvenient Truth" slide show, shared a few do's and don't's to make a great presentation.
Low-Income Americans Slipping on Broadband
New research finds overall broadband use spreading, but suggests that economic squeeze might be slowing uptake among certain segments.
Dell Finds a Way to Continue XP Sales
While most OEMs offer upgrades, Dell offers to sell a $20 "downgrade" to PC buyers -- Windows XP.
|