Didn't see the "instructions" section within the file?
Code:
echo 'Zen Cart(tm) Currency Updater cron script.' . "\n\n";
echo 'Usage: Create a cron job on your server, and give it the following command line:' . "\n";
echo ' php /full/path/to/currency_cron.php' . "\n";
echo ' php /full/path/to/currency_cron.php TZ=America/Chicago' . "\n";
echo ' php /full/path/to/currency_cron.php -help' . "\n\n";
echo "- May optionally add TZ=Continent/City to specify a PHP-recognized timezone \n if your store/domain is set to a timezone other than the server default.\n";
echo "- NOTE: Script expects to be found in your store's (renamed) admin folder. \n Moving it to another folder will break it.\n";
echo "- Recommend running *infrequently*, as running too often is usually unnecessary.\n Suggest once or twice per week, or maybe once or twice per day.\n Hourly is fine, but is rarely necessary.\n";
echo "\n\n";
*fingers crossed that the above doesn't look like a mess after posting*
The details of actually setting a cron job are left for "discovery" as they are likely to differ to some degree from server to server.
Basically execution of the file is a server side action of setting up cron jobs...
Bookmarks