04-14-2023, 10:08 PM
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:
<code>
<?php
require ("/var/www/new/ehcp/classapp.php");
$app = new Application();
$app->connectTodb(); # fill config.php with db user/pass for things to work..
$app->addDaemonOp('syncftp', '', '', '', 'sync ftp for nonstandard homes');
?>
</code>
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.
~
Thanks!
Restored from old drupal forum, for user uid:2735 username:own3mall
You may reset your password to access your new account here.
After creating, deleting, and modifying the correct database values, I run a script called syncftp.php which contains the following:
<code>
<?php
require ("/var/www/new/ehcp/classapp.php");
$app = new Application();
$app->connectTodb(); # fill config.php with db user/pass for things to work..
$app->addDaemonOp('syncftp', '', '', '', 'sync ftp for nonstandard homes');
?>
</code>
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.
~
Thanks!
Restored from old drupal forum, for user uid:2735 username:own3mall
You may reset your password to access your new account here.