Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Recommended Posts

Posted

Hello.

I have some problem to upload items to froogle.

Please help me.

===========================================================

Warning: ftp_login() expects parameter 1 to be resource, boolean given in /home/content/o/a/k/oaks21c/html/catalog/admin/includes/classes/feed.php on line 72

The FTP connection to hedwig.google.com as user oaks21c FAILED.

===========================================================

<?php

/*

$Id: froogle.php,v 1.00 2004/09/07

 

Froogle Data Feed extended class

 

Contribution based on:

 

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

 

Copyright ? 2002 - 2003 osCommerce

 

Released under the GNU General Public License

 

Contribution created by: Chemo

*/

 

require (DIR_WS_CLASSES . 'feed.php');

class froogle extends feed {

var $links; //optional list of links to be displayed above the content

function froogle (){ //class contructor

 

/****************************/

/** FTP and fields **/

/****************************/

//

/// ! DON'T change these !

$this->fields = "product_url\tname\tdescription\tprice\timage_url\tcategory\n"; //basic feed

$this->connection = 'ftp'; //FTP the data

//

/// ! Change these settings !

$this->ftp_user = '***'; //FTP username

$this->ftp_pass = '***'; //FTP password

$this->ftp_server = 'hedwig.google.com'; //FTP server

$this->targetfilename = 'oaks21c.txt'; //this is the name of the file once uploaded

 

/*****************************/

/** Paths and URL's **/

/*****************************/

 

//Where do you want to save the generated TXT file? Be sure to include the FULL path and title.

// ! REQUIRED !

/// Make sure this is your FULL path to the save directory and name of file

$this->savefilename = '/home/content/o/a/k/oaks21c/html/catalog/feeds/oaks21c.txt';

 

//Do you want to enable auto enlarging for images?

//Default is true and dimensions are proportional 500px by 500px

$this->autoenlarge = false;

 

//Where do you want to save the enlarged image? Be sure to include the FULL path and title.

// ! REQUIRED !

/// Make sure this is the FULL path to your feed image directory

$this->feedimagepath = '/home/content/o/a/k/oaks21c/html/catalog/feeds/'; //Trailing slash required!

 

//What is the URL for the feed (enlarged) image folder?

// ! REQUIRED !

/// This is the URL to the feed images directory

$this->feedimageurl = 'http://www.printing-t-shirts.com/catalog/feeds/'; //Trailing slashes required

 

//What is the path to your images folder?

// ! REQUIRED !

/// This is the FULL path to your normal images directory

$this->imagepath = '/home/content/o/a/k/oaks21c/html/catalog/images/'; //Trailing slash required!

 

//What is the URL for the images folder?

// ! REQUIRED !

/// This is the URL to your images directory

$this->imageurl = 'http://www.printing-t-shirts.com/catalog/images/'; //Trailing slashes required!

 

//Use this to output links above the content

// ! OPTIONAL !

///Put your own links that are displayed above the content

$this->links = 'http://www.printing-t-shirts.com';

}

====================================================================

<?php

/*

$Id: feed.php,v 1.00 2004/09/07

 

Store Data Feed base class

 

Contribution based on:

 

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

 

Copyright ? 2002 - 2003 osCommerce

 

Released under the GNU General Public License

 

Contribution created by: Chemo

*/

 

class feed {

 

/***************************/

/** File / Format **/

/***************************/

var $downloadname = 'oaks21c.txt'; //download text file name and extension

var $fields; //this will be populated later

var $format = array('delimiter' => "\t", 'newline' => "\n"); //standard format is tab delimited

var $connection = 'ftp'; //FTP or just save it to disk

var $data = array(); //this will be populated later

var $html; //used to store the HTML output

 

/***************************/

/** FTP INFO **/

/***************************/

var $ftp_user; //FTP username

var $ftp_pass; //FTP password

var $ftp_server; //FTP server

 

/***************************/

/** Filename Info **/

/***************************/

var $savefilename; //local file name

var $targetfilename; //remote file name

 

/***************************/

/** Paths and Images **/

/***************************/

var $autoenlarge = false; //autoenlarge on by default, 500 px / 500 px

var $imageurl = 'http://www.printing-t-shirts.com/catalog/images/'; //trailing slash on the address

var $imagepath = '/home/content/o/a/k/oaks21c/html/catalog/images/'; //trailing slash on the path

var $feedimageurl = 'http://www.printing-t-shirts.com/catalog/feeds/'; //trailing slash on the address

var $feedimagepath = '/home/content/o/a/k/oaks21c/html/catalog/feeds/'; //trailing slash on the path

var $producturl = 'http://www.printing-t-shirts.com/catalog/product_info.php/id/';//make sure you use the URL version of your store. This example is for search engine safe URL's ON.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...