Ticket #824 (closed enhancement: fixed)

Opened 18 months ago

Last modified 18 months ago

cron like function

Reported by: sgrayban Owned by: omry
Priority: High Milestone: 1.6
Component: FireStats Version: 1.5
Severity: Important Keywords: cron
Cc:

Description

This is to update the ip-to-country database and I often find that many people do not check for this.

Another reason is that many hosting places only allow php-curl and not direct socket/http calls for security reasons.

Attachments

Change History

Changed 18 months ago by omry

  • status changed from new to closed
  • resolution set to fixed

added the API call fs_api_ensure_ip2c_db_updated in 1.6.
Example usage:

require_once('/firestats/path/php/api.php');
$res = fs_api_ensure_ip2c_db_updated();
if ($res['status'] == 'error') echo "error : " . $res['message'];

Changed 18 months ago by omry

to use it, create a small PHP file that contains the lines above, and call it using

php -f update-firestats-ip2c.php

from your cron job.

Add/Change #824 (cron like function)

Author



Change Properties
<Author field>
Action
as closed
Next status will be 'reopened'
 
Note: See TracTickets for help on using tickets.