0

I require a cron job to open and export a table from my DB.

My web-host's control panel has a page for cron tasks. It requires a script to run.

I'm a .PHP & SQL guy, have never written a .CGI Script.

I would appreciate any guidance on this matter, before I waste time. Is it even possible to run SQL commands from a .CGI script?

marc_s
  • 732,580
  • 175
  • 1,330
  • 1,459
GRY
  • 724
  • 3
  • 14
  • 33

1 Answers1

0

Things that you have to take care:

  1. $_SERVER, $_GET, $_POST... arrays will be empty or undefined.
  2. The variables environnement will be minimalist in a cron job

There is no problem to run a CGI script.

You can also try to execute it on command line.

Luc M
  • 16,630
  • 26
  • 74
  • 89