first commit
This commit is contained in:
parent
876d9958b9
commit
b1fcb1bee0
|
@ -83,12 +83,13 @@
|
||||||
### #4 Crontab to fill Database.
|
### #4 Crontab to fill Database.
|
||||||
|
|
||||||
>#### For Shell (SQL insert + json)
|
>#### For Shell (SQL insert + json)
|
||||||
> */5 * * * * /usr/sbin/sh /pathto/config/statserver_json.sh 2>&1
|
> */5 * * * * /usr/sbin/sh /pathto/config/statserver_json.sh &>/dev/null
|
||||||
|
|
||||||
OR (recommended)
|
OR (recommended)
|
||||||
|
|
||||||
>#### For php (SQL insert)
|
>#### For php (SQL insert)
|
||||||
> */5 * * * * /usr/local/bin/php -f /yourpath.../config/dayz2json_parser_sql.php 2>&1
|
> */5 * * * * /usr/local/bin/php -f /yourpath.../config/dayz2json_parser_sql.php &>/dev/null
|
||||||
|
> tips change *&>/dev/null* to *2>&1* to know what is going on, maybe spam your mail log.
|
||||||
|
|
||||||
|
|
||||||
Check your time zone here. https://www.php.net/manual/en/timezones.others.php and adapt in dayz2json_parser_sql.php.
|
Check your time zone here. https://www.php.net/manual/en/timezones.others.php and adapt in dayz2json_parser_sql.php.
|
||||||
|
|
|
@ -5,13 +5,18 @@
|
||||||
|
|
||||||
// Edit this bloc for SQL
|
// Edit this bloc for SQL
|
||||||
|
|
||||||
|
$servdb = "localhost";
|
||||||
|
$userdb = "dayz";
|
||||||
|
$pdb = "dayz32";
|
||||||
|
$dbname = "dayzstat";
|
||||||
|
$table = "StatServer_5";
|
||||||
|
/*
|
||||||
$servdb = "localhost";
|
$servdb = "localhost";
|
||||||
$userdb = "user";
|
$userdb = "user";
|
||||||
$pdb = "pass";
|
$pdb = "pass";
|
||||||
$dbname = "database";
|
$dbname = "database";
|
||||||
$table = "StatServer_1";
|
$table = "StatServer_1";
|
||||||
|
*/
|
||||||
|
|
||||||
// Don't edit below !
|
// Don't edit below !
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue