first commit

This commit is contained in:
Erreur32 2021-02-06 13:56:53 +01:00
parent 876d9958b9
commit b1fcb1bee0
2 changed files with 10 additions and 4 deletions

View file

@ -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.

View file

@ -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 !