You are here:  » How to import feed by SSH?

Support Forum



How to import feed by SSH?

Submitted by AD_Mega on Sun, 2007-02-18 08:12 in

I have tried the commands:

cd / public_html / scripts /
php import.php electronics.xml

but it doesn't work. The verson of php is 4.4

Submitted by support on Sun, 2007-02-18 17:04

Hi,

What output is displayed when you do try to run the command? Are you able to copy and paste the output - this should help work out what's going on...

Cheers,
David.

Submitted by AD_Mega on Sun, 2007-02-18 18:00

This is the output I get.

Status: 404
X-Powered-By: PHP/4.4.4
Content-type: text/html

No input file specified.

Submitted by support on Sun, 2007-02-18 18:22

That's strange. Perhaps PHP isn't aware what directory it is running in. Try this:

php ./import.php electronics.xml

Submitted by AD_Mega on Sun, 2007-02-18 18:29

I still get the same output.

Submitted by AD_Mega on Sun, 2007-02-18 18:46

Does imput.php need to be in the scripts directory? import.php ia in my admin directiory.

Submitted by support on Sun, 2007-02-18 18:50

Hi,

That would explain it...

Your installation should have:

admin/feeds_import.php
scripts/import.php

This is how the files are contained in the .zip. Have they been uploaded into the wrong directory somehow?

Your scripts directory should contain:

copyextras.php
copyfilters.php
import.php
register.php

Cheers,
David.

Submitted by AD_Mega on Sun, 2007-02-18 19:00

I moved import.php into scripts but I get the same output.

Submitted by support on Sun, 2007-02-18 19:04

Hi,

Would it be possible for me to log in to your server and have a look? If you can create a temporary password for me i'll see what the problem is, but without doing this i'm afraid I don't know what else to suggest.

If you reply to your forum registration email or reg code email that is the easiest way to contact me; and if you could include all the details I would need to login and CD to the appropriate directory...

Thanks,
David.

Submitted by AD_Mega on Sun, 2007-02-18 19:17

Ok I sent you an email.

Submitted by AD_Mega on Mon, 2007-02-19 06:41

Did you get a chance to look at my directory?

Submitted by support on Mon, 2007-02-19 06:43

Hi,

I've got your email - I will be taking a look today and i'll get back to you by email...

Cheers,
David.

Submitted by AD_Mega on Wed, 2007-02-21 10:21

Hi Di you get a chance to email me?

Submitted by support on Wed, 2007-02-21 10:25

Hi,

Yes - I did reply sorry if you didn't receive it. I have just resent my mail. I was able to login to your server and run the command as follows:

cd public_html
cd script
php import.php electronics.xml

There is a PHP/Zend warning message displayed (something to do with your local PHP configuration) but this doesn't affect operation.

Cheers,
David.

Submitted by AD_Mega on Wed, 2007-02-21 11:36

Thanks! I'm able to upload the feeds now.