Support forum login

©2006-2012 IAAI Software

Contact Us Privacy Policy

Register.php - No input file specified.

Submitted by redspan on Sun, 2008-11-16 11:14.

Hi David,

http://www.pricetapestry.com/node/8

I understand the principle of the register.php automation script and I've got the helper.php file in my admin directory, so when I use that I can see the mapping of feeds, but when I try to repeat the mapping to another feed I get this:

 php register.php "feeds/Distino.xml" "xml|CATALOGUE_ITEMS/PRODUCT/" "Distino" "PRODUCT_NAME" "PRODUCT_DESC" "PRODUCT_IMAGE_URL" "PRODUCT_TRACKING_URL" "PRODUCT_PRICE" "PRODUCT_CATEGORY" "" "PRODUCT_BRAND_NAME" ""
Status: 404
Content-type: text/html
X-Powered-By: PHP/4.3.9
No input file specified.

My guess it either can't find the feed or it can't find register.php. The feed is definitely in the feed directory, so is register.php a unique file and if so, in which directory should it be? Could you post the contents here so that I can check/create a new one if need be?

Thanks,
Ben

Submitted by support on Sun, 2008-11-16 15:01.

Hello Ben,

That's very strange, and indicates that the command line version of PHP may not be configured correctly. Could you try creating a test script and then running it from the command line:

test.php:

<?php
  
print "Testing";
?>

...and then try and run it using:

$php test.php

(where $ is your command prompt)

...you do need to be in the directory of the script before running the command

Cheers,
David.

Submitted by redspan on Mon, 2008-11-17 07:45.

Hi David,

The test looks OK:

[root@s79719 httpdocs]# php test.php
Content-type: text/html
X-Powered-By: PHP/4.3.9
Testing

Is register.php a separate file, and in which directory should it be?
Could you provide a download link for this file so that I could check I have it correctly placed?

Thanks.
Ben

Submitted by support on Mon, 2008-11-17 08:59.

Hello Ben,

register.php is in the /scripts/ folder, so you will need to be in that folder before running the command, for example:

$cd path/to/pricetapestry/scripts
$php import.php ....

Cheers,
David.

Submitted by FirstByte on Sun, 2009-07-05 15:14.

Hi David,

I've been trying to bulk register a group of feeds.

Below is the command line i'm using but i keep getting the following message.

php register.php "feeds/product_feed.xml" "xml|CATALOGUE_ITEMS/PRODUCT/" "MerchantName" "PRODUCT_NAME" "PRODUCT_DESC" "PRODUCT_IMAGE_URL" "PRODUCT_TRACKING_URL" "PRODUCT_PRICE" "PRODUCT_CATEGORY" "" "PRODUCT_BRAND_NAME"

Below is the message i get after i press enter using the command line above.

Usage: register.php

I can't figure out what's happening. The import function works fine.

regards
Rod

Submitted by support on Sun, 2009-07-05 18:12.

Hello Rod,

The only problems I can see are the missing final empty parameter for user brand (another "" required), and also the filename should not have the directory included. Have a go with:

php register.php "product_feed.xml" "xml|CATALOGUE_ITEMS/PRODUCT/" "MerchantName" "PRODUCT_NAME" "PRODUCT_DESC" "PRODUCT_IMAGE_URL" "PRODUCT_TRACKING_URL" "PRODUCT_PRICE" "PRODUCT_CATEGORY" "" "PRODUCT_BRAND_NAME" ""

Cheers,
David.