stargeek
PHP news website logo.
home    PHP scripts    articles    seo tools    links    search    contact    shop    realtors

Froogle Feeder / tab delimited froogle data feed example






Stargeek's PHP Scripts

Please select a category:

View All Scripts
xmlsql
blogseo
statisticsmisc
 

Search Stargeek's PHP Scripts Database


Want to get this PHP script installed on your site?

Get this script installed by the author.

Froogle Feeder / tab delimited froogle data feed example This simple php script uses an associative array to create a tab delimited froogle datafeed file. The most important part of this php script is the fact that it contains a tab delimited froogle feed example, which is in the froogle format that you can th

<?php

//$products should be an associative array containing the following fields:
//mandatory:
//product_url    name    description    price    image_url    category    offer_id    
//optional:
//instock    shipping    brand    upc    color    size    quantity product_id    manufacturer_id    exp_date    product_type    delete    currency
$feed = "
product_url\t
name\t
description\t
price\t
image_url\t
category\t
offer_id\t
instock\t
shipping\t
brand\t
upc\t
color\t
size\t
quantity\t
product_id\t
manufacturer_id\t
exp_date\t
product_type\t
delete\t
currency\n"
;

foreach (
$products as $line)
{        
    
$feed .=  "
$line['product_url']\t
$line['name']\t
$line['description']\t
$line['price']\t
$line['image_url']\t
$line['category']\t
$line['offer_id']\t
$line['instock']\t
$line['shipping']\t
$line['brand']\t
$line['upc']\t
$line['color']\t
$line['size']\t
$line['quantity']\t
$line['product_id']\t
$line['manufacturer_id']\t
$line['exp_date']\t
$line['product_type']\t
$line['delete']\t
$line['currency']\n"
;
}
echo
$feed;
?>