Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

How to run a PHP script from Command Line


saleem145

Recommended Posts

Posted

Hello,

 

I have written a PHP script to update my specials automatically.

 

I would like to setup a cron job.

 

To do this I need to be able to run the script from the command line. Is this true?? I cannot specify a URL for the cron job command??

 

When I try to run the script from the command line I get an error saying unablke to connect to database but when I run it thru IE it works.

 

Any ideas??

 

Saleem

Posted

Unless you are hosting your own site, it's unlikely your host will allow you to run a Cron job from the command line. Most hosts (i.e. iPower) allow Cron jobs to be setup via the host's Admin CP.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...