Logaholic.com Home  |  Knowledge Base  |  Support

Updating All Profiles


If you want to automatically update all logaholic profiles at once, you can use the updateall.php command line script.

You can find the script in this directory:

logaholic/components/MaintenanceScripts/updateall.php

Edit the script to set an admin email address if you want to be notified via email.

This script should be started from the command line only. It will update statistics for all profiles in your system.

Usage:

php -q updateall.php

Example.In a cron job, you could set this up to run every hour at minute 55 like this:

55 * * * * cd /path_to_your_logaholic/;php -q updateall.php -email

Options:

php -q updateall.php -email

This will email a summary status of each updated profile to the admin

php -q updateall.php -emailproblems

This will only email if there were problems with one or more profiles that could not be updated

php -q updateall.php -reset profilename

This will reset the 'profilename' running status to 'no'


When running on Windows, edit the script set the correct path to your PHP executable (e.g. C:\PHP\php-cgi.exe)

Related Topics: