Menu Content

Currencies Accepted


Shopping Cart

cart
Your Cart is currently empty.

How to Download A Product

For most of our products, including the free ones, you will need to go through checkout and place an order.

Read More

 

Find Us Elsewhere

Follow us on Twitter

Spiral Scripts on Facebook

rapidssl_ssl_certificate
2Checkout.com is a worldwide leader in payment services

Google ads

Home » Forum

Welcome, Guest
  • Page:
  • 1

TOPIC: Googlebasexml cronjob

Googlebasexml cronjob 5 months, 1 week ago #373

Hi

What's the cronjob syntax for running, for e.g.:

www.mysite.com/index2.php?option=com_goo...p;product_country=US

Thanks

Eddie

Re: Googlebasexml cronjob 5 months, 1 week ago #374

I think you would need to replace the www.mysite.com/ part with the actual physical path to the site on your server eg

/home/websites/mysite.com/option=com_googlebasexml&format=xml&product_currency=USD&product_country=US



what exactly this is will depend on your server. Because it is a php script you will normally need to precede the command with the path to php,

eg
 
/usr/bin/php /home/websites/mysite.com/index2.php?option=com_googlebasexml&format=xml&product_currency=USD&product_country=US


again this will depend on your server, you may need to check with your web hosts
Last Edit: 5 months, 1 week ago by Susan Boggler.

Re: Googlebasexml cronjob 5 months, 1 week ago #375

Instead of using index2.php you might find that

index.php?option=com_googlebasexml&format=xml&product_currency=USD&product_country=US&tpl=component


works better. You may need to make the index.php file executable as well.

Re: Googlebasexml cronjob 5 months, 1 week ago #376

Hello

Isn't an input required and to be specified?

Re: Googlebasexml cronjob 5 months, 1 week ago #377

I'm sorry I don't understand the question.

Re: Googlebasexml cronjob 5 months, 1 week ago #378

My cron command is:

php "/home/footyfan/public_html/index.php?option=com_googlebasexml&format=xml&product_currency=USD&product_country=US"

When run it returns:

Status: 404 Not Found
X-Powered-By: PHP/5.2.17
Content-type: text/html

No input file specified.

Re: Googlebasexml cronjob 5 months, 1 week ago #379

As I said, normally you need to include the complete path to PHP, just using the PHP command is not enough.

Susan Boggler wrote:


 
/usr/bin/php /home/websites/mysite.com/index2.php?option=com_googlebasexml&format=xml&product_currency=USD&product_country=US




I do urge you to contact the web host support on this, they will probably be able to tell you more.

I have to add that I am not an expert in running cron jobs, it is something I have set up on occasion, but not with this, so I cannot be sure that what you are attempting will work at all.

I do question why you are trying to do this, as I don't see the reason to run it as a cron job. You can submit the feed directly to Google. If that isn't enough for you, for example if you want to submit the text file that the component outputs, and have it updated regularly, all you need is something that will regularly ping the web address of the feed.

Re: Googlebasexml cronjob 3 months, 2 weeks ago #398

Hi

Sorry for late reply. I sorted this by getting Google to take the feed, as you suggested.

Another question, if I run a feed in a browser it produces the file in a few minutes but the feed never appears in the browser. It used to.

Any clues?

Best

Eddie

Re: Googlebasexml cronjob 3 months, 2 weeks ago #399

Yes, I think that getting Google to take the feed is best in general.

I will try to take a look at running the extension as a cron job when I have a chance - as I said I am not really an expert on that. But I can see that there might be reasons why it could be useful.

If you run the feed in a browser what you see depends on the browser, how it chooses to display xml. If you want to see the XML that is being generated you should be able to right-click on it and select 'view page source' to do that - if you are using Firefox. Other browsers have similar ways of letting you see the source.
Last Edit: 3 months, 2 weeks ago by Susan Boggler.
  • Page:
  • 1
Time to create page: 1.07 seconds
 
 

VirtueMart Featured Products Grid

Switch View

Buy both our Flash slideshow products for Virtuemart and save £5.

£25.00


A Flash puzzle game for the Joomla! content management system. This would be suitable for a site aimed at children.

£12.00


A module extension for the the Joomla CMS. It plays a random list of mp3s using the Flash media player.

£12.00
This module displays a short excerpt from articles in a selected category or section, or from a specified list of articles, with link and optional thumbnail image.

£12.00