diff --git a/README.md b/README.md index 43461f8..5c9c217 100644 --- a/README.md +++ b/README.md @@ -83,12 +83,13 @@ ### #4 Crontab to fill Database. >#### 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) >#### 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. diff --git a/config/consql.php b/config/consql.php index 62e954a..6021be2 100644 --- a/config/consql.php +++ b/config/consql.php @@ -5,13 +5,18 @@ // Edit this bloc for SQL - + $servdb = "localhost"; + $userdb = "dayz"; + $pdb = "dayz32"; + $dbname = "dayzstat"; + $table = "StatServer_5"; +/* $servdb = "localhost"; $userdb = "user"; $pdb = "pass"; $dbname = "database"; $table = "StatServer_1"; - +*/ // Don't edit below !