You are here:  » Import all

Support Forum



Import all

Submitted by mally on Thu, 2008-12-25 23:13 in

Hello David

Using FTPiggy.com I've started using this to automate transfering the latest feed from the merchant to my /feed/ folder.

Can you explain if there's a url I can run to import all the feeds at once?

I've check throughout the forum and saw the following link

**domain**/scripts/import.php?filename=@ALL

When I try that I get the following page

#!/usr/bin/php -q Usage: import.php |@ALL|@MODIFIED [limit]

Thanks

Mally

Submitted by support on Sat, 2008-12-27 10:05

Hi Mally,

You would be able to do that with a small modification to the scripts/import.php. Starting at line 13 you will see:

  $argc = $_SERVER["argc"];
  $argv = $_SERVER["argv"];

...simply REPLACE this with:

  if ($_GET["filename"])
  {
    $argc = 2;
    $argv[1] = $_GET["filename"];
  }
  else
  {
    $argc = $_SERVER["argc"];
    $argv = $_SERVER["argv"];
  }

Cheers,
David.

Submitted by mally on Sun, 2008-12-28 11:32

Hello David

Thanks, that works with firefox (not i.e version 8)

Cheers

Mally