Archive for the ‘FeedWriter Class’ Category

Php FeedWriter Database Integration Tutorial – Generate a feed from database records

January 5th, 2012

In this post, the process of integrating Php FeedWriter with a MySQL database is explained as a step by step tutorial using the sample database integration script available to download from the sample scripts page.

For more information about the sample scripts used in this tutorial, please see the db-feed-sample.php Explained post, which works through the code in the feed-config.php and db-feed-sample.php scripts providing additional information about the process and configuration of the scripts.

Read the rest of this entry »

Tags: , ,
Posted in FeedWriter Class | Comments (0)

db-feed-sample.php Explained – Sample Feed Database Integration Php Script

January 5th, 2012

The db-feed-sample.php example script can be used to help generate a feed from information stored in a MySQL database.  The sample script has been configured to use a separate config file that contains general information about the feed (channel) as well as mappings of feed elements to columns in a database table.

When the feed is constructed, the feed details set in the the config file are used to populate the feed channel elements, which contain information about the overall feed and not individual feed items.  The database query can either be set manually, or generated dynamically using the column mappings provided in the config file.  The column mappings are also used to obtain specific information from each associative database record.

Details of the config file and feed scripts are below, which includes additional comments to help with configuring a feed populated from database records.  The contents of the scripts are also provided in full at the end of this post, or you can download the database feed integration example scripts explained here as a zip package.

A step by step tutorial is also available to assist with using this sample script.

Read the rest of this entry »

Tags: , , ,
Posted in FeedWriter Class | Comments (0)

Output Data Types and Feed Configuration to help Control Output (HTML, CDATA, Encoding)

September 18th, 2011

This post provides information about the data types used in different elements of each feed schema are used to help control how the XML is written for output.

Read the rest of this entry »

Tags: , , , ,
Posted in Uncategorized, FeedWriter Class, __construct(), getXML(), writeConstruct() | Comments (0)

Php FeedWriter Version 3.1 Update

September 12th, 2011

Php FeedWriter has been updated to fix some bugs noted by users of the package.  To download the updated version (3.1) of Php FeedWriter, please visit the downloads page.

Read the rest of this entry »

Tags: ,
Posted in FeedWriter Class, __construct(), writeConstruct() | Comments (0)

Using CDATA in Feed Output

September 10th, 2011

Php FeedWriter supports output of CDATA for a number of data types used in each feed format.  The default data types are set in the FeedConstruct class for each format, which help to control the output of the feed XML.  When CDATA is enabled, elements that use a data type that supports CDATA will be written using the writeCData() method of the XMLWriter class, instead of the writeRaw() or text() methods.

Read the rest of this entry »

Tags:
Posted in FeedWriter Class, add_item(), __construct() | Comments (0)

Tutorial: Generating Feeds Using Php FeedWriter

August 14th, 2011

A detailed tutorial on Code-Tips.com demonstrating how to generate a feed using the Php FeedWriter class library:

How to Generate Feed Using Php (Atom 1.0 and RSS 2.0 Compatible)
Read the rest of this entry »

Tags: , , , ,
Posted in FeedWriter Class, add_item(), set_date(), set_author(), set_selfLink(), getXML(), writeToFile() | Comments (0)

Php FeedWriter 3.0 (beta) Released

June 26th, 2011

Php FeedWriter 3.0 Beta is now available for download for free here.

Php FeedWriter is a free solution to generate Atom 1.0, RSS 2.0 and RSS 1.0 compatible feeds using content from a website or database.

 

Read the rest of this entry »

Tags: ,
Posted in FeedWriter Class | Comments (0)

  • Php FeedWriter (c) Copyright 2011 Daniel Soutter. Php FeedWriter and the information on this site has been designed to benefit website developers, owners and users, but may contain errors and is provided as is, with no warranty. Terms.