Hi everyone, this is the first request for help regarding Osticket. I have Osticket hosted on Aruba, with the latest php version and latest version of Osticket. I have prepared the task for the cron with API released by Osticket but in the logs I get the following error: Parse error: syntax error, unexpected '-' (T_DEC) in / web / htdocs .... This is my cron file:
<?php
/*********************************************************************
cron.php
File to handle LOCAL cron job calls.
Peter Rotich <peter@osticket.com>
Copyright (c) 2006-2013 osTicket
http://www.osticket.com
Released under the GNU General Public License WITHOUT ANY WARRANTY.
See LICENSE.TXT for details.
vim: expandtab sw=4 ts=4 sts=4:
**********************************************************************/
@chdir(dirname(FILE).'/'); //Change dir.
require('api.inc.php');
if (!osTicket::is_cli())
die(__('cron.php only supports local cron calls - use http -> api/tasks/cron'));
wget --post-data '' --header='X-API-Key: <12345678901234567890>' https://abcdef.abcdef.net/api/cron.php
require_once(INCLUDE_DIR.'api.cron.php');
LocalCronApiController::call();
?>
Where am I wrong?