Synchronize Custom FTP Accounts :: API Help
I'm writing an API for the OGP (Open Game Panel www.opengamepanel.org) control panel to create custom FTP users with non-standard homes.
After creating, deleting, and modifying the correct database values, I run a script called syncftp.php which contains the following:
$app = new Application();
$app->connectTodb(); # fill config.php with db user/pass for things to work..
$app->addDaemonOp('syncftp', '', '', '', 'sync ftp for nonstandard homes');
When I run this script from the command line terminal (using php-cgi -f syncftp.php), I receive the following error:
Notice: date_default_timezone_set(): Timezone ID 'Europa/Istanbul' is invalid in /var/www/new/ehcp/classapp.php on line 194
Warning: mysql_connect(): Access denied for user 'earnolmartin'@'localhost' (using password: YES) in /var/www/new/ehcp/config/adodb/drivers/adodb-mysql.inc.php on line 365
Any idea why this is happening? Is this the correct way to call EHCP to sync the non-standard homes?
Please let me know.